5,276,801 members and growing! (15,615 online)
Email Password   helpLost your password?
Web Development » ASP.NET » General     Intermediate

Microsoft SQL Database Documentor

By gogglin

A Microsoft SQL database documentor, using Crystal Reports
VB, SQL, C# 1.0, C#, Windows, .NET, .NET 1.1, .NET 2.0, ASP.NET, VS.NET2003, VS, DBA, Dev

Posted: 17 Aug 2006
Updated: 17 Aug 2006
Views: 16,066
Announcements
Want a new Job?



Search    
Advanced Search
Sitemap
5 votes for this Article.
Popularity: 2.31 Rating: 3.31 out of 5
0 votes, 0.0%
1
1 vote, 20.0%
2
1 vote, 20.0%
3
2 votes, 40.0%
4
1 vote, 20.0%
5
Note: This is an unedited contribution. If this article is inappropriate, needs attention or copies someone else's work without reference then please Report This Article

Sample Image - dt2.jpg

Introduction

This project uses Crystal Reports to generate a database schema listing on a Microsoft SQL database. The listing includes extended column information including the 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 codebehind 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.

History

 

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

gogglin



Location: United States United States

Other popular ASP.NET articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 12 of 12 (Total in Forum: 12) (Refresh)FirstPrevNext
Subject  Author Date 
GeneralError Loading in VS2005memberMarcEleazar16:43 30 Apr '08  
GeneralErrors while loading on VS 2005memberMarcEleazar21:29 21 Apr '08  
GeneraldbaDoc - Error in loading the SolutionmemberMarcEleazar18:41 5 Mar '08  
GeneralRe: dbaDoc - Error in loading the Solutionmembergogglin21:25 7 Mar '08  
QuestionGreat Concept, But Nothing Shows?memberMember 19994936:11 26 Feb '08  
GeneralRe: Great Concept, But Nothing Shows?membergogglin21:22 7 Mar '08  
GeneralRunning into errors on compilemembere4thenf412:28 23 Jun '07  
GeneralRe: Running into errors on compilemembergogglin5:10 28 Jun '07  
GeneralReporting ServicesmemberRogerMCT6:13 23 Aug '06  
AnswerRe: Reporting Servicesmembergogglin12:51 23 Aug '06  
GeneralNeat!memberamarie5:53 22 Aug '06  
GeneralRe: Neat!membergogglin12:42 23 Aug '06  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 17 Aug 2006
Editor:
Copyright 2006 by gogglin
Everything else Copyright © CodeProject, 1999-2008
Web19 | Advertise on the Code Project