| Author: Yordan Georgiev 10 Sep 2008 | Member Level: Bronze Points : 2 |
SELECT c.name AS [COLUMN_NAME], sc.data_type AS [DATA_TYPE], [value] AS [DESCRIPTION] , c.max_length as [MAX_LENGTH] , c.is_nullable AS [OPTIONAL] , c.is_identity AS [IS_PRIMARY_KEY] FROM sys.extended_properties AS ep INNER JOIN sys.tables AS t ON ep.major_id = t.object_id INNER JOIN sys.columns AS c ON ep.major_id = c.object_id AND ep.minor_id = c.column_id INNER JOIN INFORMATION_SCHEMA.COLUMNS sc ON t.name = sc.table_name and c.name = sc.column_name WHERE class = 1 and t.name = 'tbGui_Links'
|
| Author: Geetha 10 Sep 2008 | Member Level: Gold Points : 1 |
hi
Very useful post yar, Really good one. Keep sharing knowledge with us.
Regards, Geetha.
|