Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing or saving SQL Server 7.0 schema to a file

Status
Not open for further replies.
Apr 25, 2001
1
US
How can I pipe the SQL Server database structure to a file (i.e. MS Word doc)? Short of linking the SQL Server tables to an Access database and using the Documenter tool, is there a better way to print table structures?
 
Yes, by generating script. Right click the table, highlight "all tasks" then click on "generate sql script".





Andel
andelbarroga@hotmail.com
 
You may want to examine the INFORMATION_SCHEMA views that exist in each database. For example; the view INFORMATION_SCHEMA.Columns lists all of the columns in each table and view in the current database.

Using the INFORMATION_SCHEMA views, you can create tabular reports of your schemas.

1- Select which columns of the view you wish to see on your report.
2- Create and run a query in Query Analyzer.
3- Copy and paste the results into Word. Or you can save the result and import into Excel or some other program. Terry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top