﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Raj Vasant / Article Discussions / Article Discussions by Author  / Document Your Database / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Mon, 20 May 2013 01:00:21 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>Here is one more [url=http://pragmaticworks.com/Products/Business-Intelligence/BIDocumenter/Overview.aspx]Free Tool to document Sql Server[/url]</description><pubDate>Mon, 02 May 2011 11:48:28 GMT</pubDate><dc:creator>SSIS Guy</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>Here is one more Free Tool to [url=http://pragmaticworks.com/Products/Business-Intelligence/BIDocumenter/Overview.aspx]document Sql Server[/url]</description><pubDate>Mon, 02 May 2011 11:44:32 GMT</pubDate><dc:creator>SSIS Guy</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>[quote][b]brhunter (1/2/2008)[/b][hr]Great advice. However, I think a better article would be on the practice of creating "Self Documenting" database Schemas. [/quote] See Joe Celko's book "SQL Programming Style" ISBN:0-12-088797-5</description><pubDate>Wed, 02 Jan 2008 11:15:47 GMT</pubDate><dc:creator>Charles Kincaid</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>Great advice. However, I think a better article would be on the practice of creating "Self Documenting" database Schemas. </description><pubDate>Wed, 02 Jan 2008 09:35:44 GMT</pubDate><dc:creator>brhunter-540485</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>I agree, I've gone to the effort of writing a Word macro template to document SQL-Server databases. You just select an ODBC data-source for a SQL server database and it will document all the tables, indexes, triggers, stored procedures and functions on the database. It's been well tested on sql-server 2005 but I think it should also run on 2000.If anyone would like to try it please email me at: dbdocument at gmail dot com. :)</description><pubDate>Wed, 02 Jan 2008 09:11:37 GMT</pubDate><dc:creator>Jonathan AC Roberts</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>Many thanks JoseThe script works and I found the views (I was looking under system tables before, never occurred to me to check the views)thanks againKris</description><pubDate>Thu, 15 Nov 2007 14:54:16 GMT</pubDate><dc:creator>Kris-420132</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>Hi Kris,this is the same query for SQL 2005:[code]select SO.name as 'table', SC.name as field,ST.name as datatype, SC.max_length as 'size',sp.value as 'description'from sys.columns SC inner joinsys.objects SO on SC.object_id = SO.object_id inner joinsys.types ST on ST.user_type_id = SC.user_type_id left joinsys.extended_properties sp on sp.major_id = so.object_id and sp.minor_id = SC.column_idand sp.name = 'MS_Description'where SO.type = 'U'order by SO.name, SC.name[/code]Regarding your second question: [quote]if i wanted to browse these tables, how would I access them?[/quote]Just go to DB -&amp;gt; Views -&amp;gt; System viewsHope it helps.Regards,Jose</description><pubDate>Thu, 15 Nov 2007 11:05:49 GMT</pubDate><dc:creator>JAG-360157</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>I haven't started using 2005 yet, but I'm sure someone on the forum can help you.Steve</description><pubDate>Thu, 15 Nov 2007 10:17:25 GMT</pubDate><dc:creator>steve block</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>I'm using sql 2005Do you by chance know how to access those objects in 2005?</description><pubDate>Thu, 15 Nov 2007 09:37:58 GMT</pubDate><dc:creator>Kris-420132</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>The query works for me in SqlServer 2000.  What version do you have?Steve</description><pubDate>Wed, 14 Nov 2007 15:04:31 GMT</pubDate><dc:creator>steve block</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>[quote][b]Andy DBA (1/11/2007)[/b][hr]CORRECTION. The prior posted sql may have duplicates.   The following should work better:--List tables, columns and column descriptionsselect SO.name as 'table', SC.name as field, ST.name as datatype, SC.length as 'size', sp.value as 'description'from syscolumns SC inner joinsysobjects SO on SC.id = SO.id inner join systypes ST on ST.xusertype = SC.xusertype left join sysproperties sp on sp.id = so.id and sp.smallid = SC.colid and sp.name = 'MS_Description'where SO.xtype = 'U' and SO.status &amp;gt; 0order by SO.name, SC.name[/quote]When I try to run the query I get an error"Msg 208, Level 16, State 1, Line 2 Invalid object name 'sysproperties'."If i remove the sysproroerties table from the query the query will run, for some reason its the only table that I can't find.Furthermore I logged in as SA to see if it was a permissions error, but I still got the same error.Next question (could be linked to the problem above), if i wanted to browse these tables, how would I access them?My first guess, using the SQL SMS would be to go DB -&amp;gt; Tables -&amp;gt; System Tables -&amp;gt; syspropertiesThanks in advanceKrisHowever the only table in "System Tables" is sysdiagrams</description><pubDate>Wed, 14 Nov 2007 13:33:20 GMT</pubDate><dc:creator>Kris-420132</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>You can also right-click on the object in the object tree within SQL Query Analyser</description><pubDate>Fri, 02 Feb 2007 11:49:00 GMT</pubDate><dc:creator>David.Poole</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>&lt;P&gt;For those of you who want to use the extended properties and think that there is no extended properties for the table in general, there is a way to enter it directly from Enterprise Manager.&lt;/P&gt;&lt;P&gt;When you are in Design Table, right click one of the columns and chose Properties.  The field called Description on the Tables tab is stored in the extended properties.&lt;/P&gt;&lt;P&gt;You can access it from a script with:&lt;/P&gt;&lt;P&gt;SELECT @tabledesc = value FROM   ::fn_listextendedproperty(NULL, N'user', N'dbo', N'table', @tblname, DEFAULT, DEFAULT)&lt;/P&gt;&lt;P&gt;I have a script called usp_Table_Doc that takes the table name as a parameter outputs a file layout, complete with the extended properties as descriptions, if anyone is interested.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description><pubDate>Thu, 01 Feb 2007 15:40:00 GMT</pubDate><dc:creator>steve block</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>also sqlspec does more than just SQL Server.  Oracle, MySQL, Access, Analysis Services are supported.DB2, Sybase, PostgreSQL coming soon... &lt;img src='images/emotions/smile.gif' height='20' width='20' border='0' title='Smile' align='absmiddle'&gt;</description><pubDate>Thu, 18 Jan 2007 13:19:00 GMT</pubDate><dc:creator>jezemine</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>This idea seems to be good.</description><pubDate>Fri, 12 Jan 2007 15:18:00 GMT</pubDate><dc:creator>Kiran-396897</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>Don't forget Innovasys DocumentX.  It covers SQL Server, Oracle, Access and also does .NET assemblies, Visual Studio projects, ActiveX and VBA.After using a proper tool I wouldn't use a word processor for documentation because&lt;ul&gt;&lt;li&gt;It is not easy to update&lt;/li&gt;&lt;li&gt;It is not intrinsically linked to the database so can be obsolete fast&lt;/li&gt;&lt;li&gt;Does not automatically cross reference to bookmarks within itself&lt;/li&gt;&lt;li&gt;Isn't a natural reference format (such as CHM or web ) for programmer&lt;/li&gt;&lt;li&gt;Is very bulky&lt;/li&gt;&lt;/ul&gt;It sounds obvious but the purpose of documentation is to be read.  There is a great skill in writing a complex document in such a way that it is easy to pick up the salient facts quickly.</description><pubDate>Fri, 12 Jan 2007 11:50:00 GMT</pubDate><dc:creator>David.Poole</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>dbdesc (mentioned earlier in this thread) can generate Word 2003 and RTF documents among others. It uses XSL templates so the output can be fully customized.Additionally, it includes a built-in extended property editor to easily manage descriptions. In my opinion, extended properties are the perfect place to store your comments as they go together with your database.</description><pubDate>Fri, 12 Jan 2007 08:38:00 GMT</pubDate><dc:creator>JAG-360157</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>&lt;SPAN id=Showtread1_ThreadRepeater__ctl1_lblFullMessage&gt; It's great that you mentioned the Apex product, but I would expect an "article" on the topic to do a more thorough compare-and-contrast of the many products that are out there to help a dba document his or her database. Just to mention some others:&lt;P&gt;&lt;A href="http://www.schematodoc.com/" target=_blank rel=nofollow&gt;http://www.schematodoc.com/&lt;/A&gt;&lt;A href="http://www.ag-software.com/" target=_blank rel=nofollow&gt;http://www.ag-software.com&lt;/A&gt;&lt;A href="http://www.dbdesc.com/" target=_blank rel=nofollow&gt;http://www.dbdesc.com&lt;/A&gt;&lt;/P&gt;&lt;/SPAN&gt;</description><pubDate>Fri, 12 Jan 2007 05:11:00 GMT</pubDate><dc:creator>Robert Bedick</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>&lt;P&gt;I keep a corresponding dictionary database for every database I design with descriptions of the tables, views and columns.  Good idea to add stored procs, I hadn't thought of that.  I'm required to document data classification (you know what's sensitive and what's not), so that's in there too.  For that last database I developed, all the columns are populated from a non-windows system so I added the source information too.  Now I can talk to the admins on that system in their terms if I need to.&lt;/P&gt;</description><pubDate>Thu, 11 Jan 2007 12:35:00 GMT</pubDate><dc:creator>Terrie</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>&lt;P&gt;I added this:&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;select&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt; SO&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;name &lt;/FONT&gt;&lt;FONT size=2&gt;as&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT size=2&gt;'table'&lt;/FONT&gt;&lt;FONT size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt; SC&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;name &lt;/FONT&gt;&lt;FONT size=2&gt;as&lt;/FONT&gt;&lt;FONT size=2&gt; field&lt;/FONT&gt;&lt;FONT size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;ST&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;name &lt;/FONT&gt;&lt;FONT size=2&gt;as&lt;/FONT&gt;&lt;FONT size=2&gt; datatype&lt;/FONT&gt;&lt;FONT size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt; SC&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;length &lt;/FONT&gt;&lt;FONT size=2&gt;as&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT size=2&gt;'size'&lt;/FONT&gt;&lt;FONT size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;COALESCE&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;sp&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;value&lt;/FONT&gt;&lt;FONT size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt;df&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;Comment&lt;/FONT&gt;&lt;FONT size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt;''&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT size=2&gt;as&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT size=2&gt;'description'&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;from&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT size=2&gt;syscolumns&lt;/FONT&gt;&lt;FONT size=2&gt; SC &lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;inner&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT size=2&gt;join&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT size=2&gt;sysobjects&lt;/FONT&gt;&lt;FONT size=2&gt; SO &lt;/FONT&gt;&lt;FONT size=2&gt;on&lt;/FONT&gt;&lt;FONT size=2&gt; SC&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;id &lt;/FONT&gt;&lt;FONT size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; SO&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;id &lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;inner&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT size=2&gt;join&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT size=2&gt;systypes&lt;/FONT&gt;&lt;FONT size=2&gt; ST &lt;/FONT&gt;&lt;FONT size=2&gt;on&lt;/FONT&gt;&lt;FONT size=2&gt; ST&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;xusertype &lt;/FONT&gt;&lt;FONT size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; SC&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;xusertype &lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;left&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT size=2&gt;join&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT size=2&gt;sysproperties&lt;/FONT&gt;&lt;FONT size=2&gt; sp &lt;/FONT&gt;&lt;FONT size=2&gt;on&lt;/FONT&gt;&lt;FONT size=2&gt; sp&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;id &lt;/FONT&gt;&lt;FONT size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; so&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;id &lt;/FONT&gt;&lt;FONT size=2&gt;and&lt;/FONT&gt;&lt;FONT size=2&gt; sp&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;smallid &lt;/FONT&gt;&lt;FONT size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; SC&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;colid &lt;/FONT&gt;&lt;FONT size=2&gt;and&lt;/FONT&gt;&lt;FONT size=2&gt; sp&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;name &lt;/FONT&gt;&lt;FONT size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT size=2&gt;'MS_Description'&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;left&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT size=2&gt;outer&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT size=2&gt;join&lt;/FONT&gt;&lt;FONT size=2&gt; doc_fields df &lt;/FONT&gt;&lt;FONT size=2&gt;on&lt;/FONT&gt;&lt;FONT size=2&gt; df&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;tablename &lt;/FONT&gt;&lt;FONT size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; so&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;name &lt;/FONT&gt;&lt;FONT size=2&gt;and&lt;/FONT&gt;&lt;FONT size=2&gt; df&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;fieldname &lt;/FONT&gt;&lt;FONT size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; SC&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;name&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;where&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt; SO&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;xtype &lt;/FONT&gt;&lt;FONT size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT size=2&gt;'U'&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT size=2&gt;and&lt;/FONT&gt;&lt;FONT size=2&gt; SO&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;status &lt;/FONT&gt;&lt;FONT size=2&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT size=2&gt; 0&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;order&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT size=2&gt;by&lt;/FONT&gt;&lt;FONT size=2&gt; SO&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;name&lt;/FONT&gt;&lt;FONT size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt; SC&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;colorder&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;Now&lt;/FONT&gt; it looks into the extended properties or my table.&lt;img src='images/emotions/cool.gif' height='20' width='20' border='0' title='Cool' align='absmiddle'&gt;&lt;/P&gt;</description><pubDate>Thu, 11 Jan 2007 11:42:00 GMT</pubDate><dc:creator>Charles Kincaid</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>You are right. Just tried it in 2005 and it fails.&lt;img src='images/emotions/sad.gif' height='20' width='20' border='0' title='Sad' align='absmiddle'&gt;</description><pubDate>Thu, 11 Jan 2007 11:24:00 GMT</pubDate><dc:creator>Charles Kincaid</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>&lt;P&gt;CORRECTION.  The prior posted sql may have duplicates.  &lt;img src='images/emotions/shocked.gif' height='20' width='20' border='0' title='Shocked' align='absmiddle'&gt; The following should work better:&lt;/P&gt;&lt;P&gt;--List tables, columns and column descriptionsselect SO.name as 'table', SC.name as field, ST.name as datatype, SC.length as 'size', sp.value as 'description'from syscolumns SC inner joinsysobjects SO on SC.id = SO.id inner join systypes ST on ST.xusertype = SC.xusertype left join sysproperties sp on  sp.id = so.id and sp.smallid = SC.colid and sp.name = 'MS_Description'where SO.xtype = 'U' and SO.status &amp;gt; 0order by SO.name, SC.name&lt;/P&gt;</description><pubDate>Thu, 11 Jan 2007 09:26:00 GMT</pubDate><dc:creator>Andy DBA</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>&lt;P&gt;This may not have been mentioned in the article because it's too obvious, but I consider a database relational diagram to be one of the most important pieces of documentation for any database.  I usually create one with only the "core" tables but detailed column information and another with all tables including "look-up"s but with less column detail.&lt;/P&gt;&lt;P&gt;I also use the following sql to list tables, columns, and the "Description" text that EM's "Design Table" lets you enter.  I save the results to Excel and add the spreadsheet to my database documentation.&lt;/P&gt;&lt;P&gt;Note: This works on SQL 2000.  I have not tried it on SQL 7.0 or 2005 (yet) but it probably needs adjusting because it uses system tables.&lt;/P&gt;&lt;P&gt;--List tables, columns and column descriptionsselect SO.name as 'table', SC.name as field, ST.name as datatype, SC.length as 'size', sp.value as 'description'from syscolumns SC inner joinsysobjects SO on SC.id = SO.id inner join systypes ST on ST.xusertype = SC.xusertype left join sysproperties sp on  sp.id = so.id and sp.smallid = SC.colidwhere SO.xtype = 'U' and SO.status &amp;gt; 0order by SO.name, SC.name&lt;/P&gt;</description><pubDate>Thu, 11 Jan 2007 09:07:00 GMT</pubDate><dc:creator>Andy DBA</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>&lt;P&gt;I've been doing this for quite a while now.  Version before 2005 did not support extended properties for tables well.  I wanted a unified system.  So:&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;CREATE TABLE [doc_Fields] (  [TableName] [varchar] (50),  [FieldName] [varchar] (50),  [Comment] [varchar] (4000)) ON [PRIMARY]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I then put my field and table descriptions here.  If the field name is blank, or NULL, then Comment applies to the table.  A little grid based program to make the entry easy and one to generate an RTF file.&lt;/P&gt;&lt;P&gt;Now ported to .Net and using the extended properties it serves us well.  The advantage of the extended properties is that when I generate create scripts the comments come along.  This is also a help to the UI teams.  They can use this to generate tool tips.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description><pubDate>Thu, 11 Jan 2007 08:22:00 GMT</pubDate><dc:creator>Charles Kincaid</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>I recently saw a pretty good product for a affordable price.  SQLSpec from Elsasoft (&lt;A href="http://www.elsasoft.org/"&gt;http://www.elsasoft.org/&lt;/A&gt;) was actually written by a member here &lt;A href="http://www.sqlservercentral.com/forums/userinfo.aspx?id=145142"&gt;http://www.sqlservercentral.com/forums/userinfo.aspx?id=145142&lt;/A&gt;.  It does not do HTML Help files like ApexDoc, but seems to cover the features pretty well.  It can also help to document application access (though you have to put the links and info in via an additional XML file).  And for $50, it certainly more affordable than the others listed here.</description><pubDate>Thu, 11 Jan 2007 07:26:00 GMT</pubDate><dc:creator>Mark Harr</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>&lt;P&gt;From my experience it's not just about documenting the objects, but how they're accessed and their purpose; and ensuring that the documentation is up to date.  MS Word, as the author suggests, requires someone to keep it up to date; and we all know how well that turns out.  There are many tools out there, all with their good points, but I personally wouldn't ever consider one which didn't offer me the ability to run as part of a build, or nightly task.&lt;/P&gt;&lt;P&gt;On the subject of tools; my shameless plug is for DBDocumentor from Pikauba Software (&lt;A href="http://www.pikauba.com/DBDoc/details.htm"&gt;http://www.pikauba.com/DBDoc/details.htm&lt;/A&gt;).  It works from the SQL sources so it won't be for everyone, but the tradeoff is that you can get information about result sets and data accesses/modifications.  It also has support for SSRS RDL, so that's a good bonus.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description><pubDate>Thu, 11 Jan 2007 06:41:00 GMT</pubDate><dc:creator>Tim Mackey</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;about Tools: I made good experiences with Enterprise Architect from Sparx Systems . It is a software modelling tool. &lt;A href="http://www.sparxsystems.com.au/"&gt;http://www.sparxsystems.com.au/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can import DDL Schemas by using OLEDB and ODBC connections to many database systems. The tool reads the extended Properties from SQL Server Objects and from others (DB2). &lt;/P&gt;&lt;P&gt;You can edit the DDL with a GUI and export DDL scripts. &lt;/P&gt;&lt;P&gt;Best regards, &lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;</description><pubDate>Thu, 11 Jan 2007 05:06:00 GMT</pubDate><dc:creator>Stefan K</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>&lt;P&gt;Good Thing you have been introduced&lt;/P&gt;&lt;P&gt;it really help in documentation ... related thing........&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description><pubDate>Thu, 11 Jan 2007 04:44:00 GMT</pubDate><dc:creator>shashi kant</dc:creator></item><item><title>RE: Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>Decent advice.  Most design methodologies (especially agile methods) have heavy documentation requirements for a project - not only does it ease position transfer such as job replacements, but also, it really helps to have documentation of stuff you wrote yourself a couple of months/years ago when you need to work on it again.  Good naming conventions of columns and variables also go a long way to clearing up understanding of old code/tables.I like the ability to comment on a table column directly.  The closer to the actual usage a comment is, the more valuable I rate it.</description><pubDate>Thu, 11 Jan 2007 03:56:00 GMT</pubDate><dc:creator>Albie van Rensburg</dc:creator></item><item><title>Document Your Database</title><link>http://www.sqlservercentral.com/Forums/Topic333506-227-1.aspx</link><description>Comments posted here are about the content posted at &lt;A HREF="http://www.sqlservercentral.com/columnists/rVasant/2784.asp"&gt;http://www.sqlservercentral.com/columnists/rVasant/2784.asp&lt;/A&gt;</description><pubDate>Fri, 29 Dec 2006 11:16:00 GMT</pubDate><dc:creator>Vasant Raj</dc:creator></item></channel></rss>