SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Other SQL Server 2008 Topics
 Data Map
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tfgconsultant
Starting Member

USA
7 Posts

Posted - 09/12/2012 :  10:36:49  Show Profile  Reply with Quote
I am working out of MS SQL 2008 R2. I wanted to create a data map for the databases and tables. What is the best way to accomplish this? Easiest most efficient way of course.

Thanks in advance.

robvolk
Most Valuable Yak

USA
15676 Posts

Posted - 09/12/2012 :  10:42:12  Show Profile  Visit robvolk's Homepage  Reply with Quote
By "data map" do you mean a database diagram?
Go to Top of Page

tfgconsultant
Starting Member

USA
7 Posts

Posted - 09/12/2012 :  10:51:06  Show Profile  Reply with Quote
Yes, data mapping in Excel spreadsheet or something that will map a db to a table. Kind of like a diagram I guess.
Go to Top of Page

robvolk
Most Valuable Yak

USA
15676 Posts

Posted - 09/12/2012 :  10:56:33  Show Profile  Visit robvolk's Homepage  Reply with Quote
Sounds like what you mean is a list of database names, table names, column names, data types and sizes?

Check the INFORMATION_SCHEMA.COLUMNS view:
SELECT * FROM INFORMATION_SCHEMA.COLUMNS
Run that query in the database you wish to document, and copy the results into Excel. You can arrange/remove columns if needed.
Go to Top of Page

tfgconsultant
Starting Member

USA
7 Posts

Posted - 09/12/2012 :  13:08:38  Show Profile  Reply with Quote
OK, I will check that out. Thanks!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000