The skinny is you can easily find a list of tables (sys.Tables) and columns (sys.Columns) but the descriptions are saved to a seperate extended properties table (sys.extended_properties). I could not find where or how to get the descriptions until I came across this helpful post, http://databases.aspfaq.com/schema-tutorials/schema-how-do-i-show-the-description-property-of-a-column.html. Most of the posts either referenced a sysproperties table (which is now deprecated) or a nearly un-usable sproc fn_listextendedproperty. Anyways here is the SQL queries, which allow a quick dump of tables and columns followed by the descriptions that were put into the DDT.
-- Create a list and description of all tables
SELECT
t1
t2
FROM
LEFT
ON
ORDER
-- Create list of all table column names and descriptions
[Table Name]
[Column Name]
[Description]
ex
WHERE
Hope someone else finds this useful!!
Jason Seidell Jason Seidell
Programmer/Analyst
Infinedi
That would be great for a more programmatic access, but I was just looking for a quick and dirty copy and paste action. However that does create an interesting idea for code that would automatically parse those xml files and then update a documentation source. So as SF DBA/developer I just need to update my DDT and deploy, without having to merge those changes into the documentation.
Jason Jason Seidell