Tips on T-SQL, SQL Server DBA stuff, and more!
-- All table info SELECT * FROM INFORMATION_SCHEMA.Columns WHERE TABLE_NAME = 'tblName'
-- Column Info SELECT COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.Columns WHERE TABLE_NAME = 'tblName'
No comments:
Post a Comment