Click here to Skip to main content
Licence CPOL
First Posted 17 Aug 2006
Views 38,269
Bookmarked 47 times

Microsoft SQL Server Database Documentor

By | 17 Aug 2006 | Article
A Microsoft SQL Server database documentor, using Crystal Reports.
 
Part of The SQL Zone sponsored by
See Also

Sample Image - dt2.jpg

Introduction

This project uses Crystal Reports to generate a database schema listing on a Microsoft SQL Server database. The listing includes extended column information including column descriptions. This project requires Visual Studio 2003 or 2005, .NET Framework 1.1, and the Crystal Reports for Visual Studio component.

The generated report lists column names, data types, size, description, etc. Primary key columns are preceded by an asterisk. Columns names are italicized when the column is allowed to be NULL in the table.

Background

One day I set out to document a database that I had been studying. Using the Table Designer in Enterprise Manager, I began entering descriptions of the columns of each table. Later on, I discovered that there is no way to print out the column descriptions using EM. I did a little research and discovered how to get the descriptions out of the sysobjects table.

Using the Code

The project can be built and run with just a little setup. To install the project, unzip it to a directory of your choosing, for instance c:\projects\dbadoc. Create a virtual directory in IIS and set the path to c:\projects\dbadoc\client.

Open Visual Studio and build the project. If you are using VS 2005, the project should convert with no problems. That's it!

Points of Interest

  • Don't ask me why I used VB for the code-behind and C# for the data classes. No, really, don't ask.
  • I don't know the configuration steps or failure characteristics when Crystal Reports is not installed and configured with Visual Studio. If you go through this setup, kindly email me and I'll update with those directions.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

gogglin



United States United States

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralError Loading in VS2005 PinmemberMarcEleazar15:43 30 Apr '08  
GeneralErrors while loading on VS 2005 PinmemberMarcEleazar20:29 21 Apr '08  
GeneraldbaDoc - Error in loading the Solution PinmemberMarcEleazar17:41 5 Mar '08  
GeneralRe: dbaDoc - Error in loading the Solution Pinmembergogglin20:25 7 Mar '08  
QuestionGreat Concept, But Nothing Shows? PinmemberMember 19994935:11 26 Feb '08  
GeneralRe: Great Concept, But Nothing Shows? Pinmembergogglin20:22 7 Mar '08  
GeneralRunning into errors on compile Pinmembere4thenf411:28 23 Jun '07  
GeneralRe: Running into errors on compile Pinmembergogglin4:10 28 Jun '07  
GeneralReporting Services PinmemberRogerMCT5:13 23 Aug '06  
AnswerRe: Reporting Services Pinmembergogglin11:51 23 Aug '06  
GeneralNeat! Pinmemberamarie4:53 22 Aug '06  
GeneralRe: Neat! Pinmembergogglin11:42 23 Aug '06  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120517.1 | Last Updated 17 Aug 2006
Article Copyright 2006 by gogglin
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid