June 21, 2016 at 11:16 am
The following list the Extended Properties for each column in a table:
SELECT * FROM ::fn_listExtendedProperty
(DEFAULT,'schema', 'dbo', 'table', 'Event', 'column',DEFAULT)
How do you list the Extended Properties for a Table?
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
June 21, 2016 at 11:17 am
Correction: Extended Properties for a table?
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
June 21, 2016 at 11:35 am
Welsh Corgi (6/21/2016)
The following list the Extended Properties for each column in a table:
SELECT * FROM ::fn_listExtendedProperty
(DEFAULT,'schema', 'dbo', 'table', 'Event', 'column',DEFAULT)
How do you list the Extended Properties for a Table?
just start nulling out parameters from right to left to get wider and wider scope
leave the last two properties as NULL, nad you get all properties for the table, along with all properties for columns.
null all values, nad you see everything in the database.
SELECT * FROM ::fn_listExtendedProperty
(NULL,NULL, NULL, NULL, NULL, NULL,NULL)
Lowell
June 21, 2016 at 12:23 pm
I tried this and I got nothing:
SELECT * FROM ::fn_listExtendedProperty
(NULL,NULL, NULL, NULL, NULL, NULL,NULL)
I tried this and it only returned the value for the table:
SELECT * FROM ::fn_listExtendedProperty
(DEFAULT,'schema', 'dbo', 'table', 'CATEvent', NULL,NULL)
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply