I've created 25 tables in my SQL 2000 server, and I want to export the database definitions (fields + field definitions) to some sort of file (text file, excel file, whatever)
How can I do this ? Peter Van Eeckhoutte
peter.ve@pandora.be
1- You can create a script for all of the tables. In Enterprise Manager, right click on the database, select All Tasks, and then select Generate SQL Scripts.
2- Select * From INFORMATION_SCHEMA.Columns
There are several INFORMATION_SCHEMA views that provide schema information for each database. Microsoft recommends using the INFORMATION_SCHEMA views to display schema info. Terry
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.