<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>&lt;CF-A-LOT /&gt; - Documentation</title>
			<link>http://www.danlance.co.uk/index.cfm</link>
			<description>Dan Lancelot&apos;s CF-Blog</description>
			<language>en-gb</language>
			<pubDate>Tue, 07 Sep 2010 01:31:31 --0100</pubDate>
			<lastBuildDate>Mon, 11 May 2009 20:54:00 --0100</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>danlance@gmail.com</managingEditor>
			<webMaster>danlance@gmail.com</webMaster>
			
			
			
			
			
			<item>
				<title>SQL Server DB documentation from schema</title>
				<link>http://www.danlance.co.uk/index.cfm/2009/5/11/SQL-Server-DB-documentation-from-schema</link>
				<description>
				
				I am in the (fun!) process of documenting an application I created nearly 5 years ago, in which the majority of the functionality is controlled by the database (it&apos;s a business workflow automation tool).

Reverse engineering substantially reduces the size of the task - Visio&apos;s &lt;b&gt;Database &amp;gt; Reverse Engineer...&lt;/b&gt; command is a real time saver when you have foreign key constraints defined, makes generation of an ERD no more complicated than arranging all the boxes so that none (or few!) of the relationship lines cross!

A little utility contributed to the Code Project website makes the process of creating table and field documentation much easier: &lt;a target=&quot;_blank&quot; href=&quot;http://www.codeproject.com/KB/database/sqldoc.aspx&quot;&gt;http://www.codeproject.com/KB/database/sqldoc.aspx&lt;/a&gt;

This utility can be pointed at a SQL server database, and will generate an HTML document listing all the tables and fields in the database, together with data types, nullable, default values and description fields from the db schema.

It uses an XSLT transformation to convert the xml generated to an HTML document.  This can be edited so that it&apos;s closer to final requirements - I have updated the XSLT to place anchors on each table name, and links at the top of the file to each table.

This makes it a much less arduous task to document each table and field - I can edit the file in dreamweaver and just add descriptions for each field and table.
				
				</description>
						
				
				<category>Documentation</category>				
				
				<category>XML</category>				
				
				<category>Database</category>				
				
				<pubDate>Mon, 11 May 2009 20:54:00 --0100</pubDate>
				<guid>http://www.danlance.co.uk/index.cfm/2009/5/11/SQL-Server-DB-documentation-from-schema</guid>
				
			</item>
			
		 	
			</channel></rss>