Problem solve Get help with specific problems with your technologies, process and projects.

Generating a Word doc containing database info

I'm pretty much new to SQL Server, so I request your help. I have been given the responsibility of generating a Word document containing all the tables, their fields, datatypes, length, nullable or not and also their primary keys. This needs to be in a tabular form, and I need to automate this process, as the number of tables are very high. Please suggest a tool (free tool preferred) or a script.

You can just start up Enterprise Manager and extract this information. If you want to put it into a script that you can run whenever you need to, you can use Profiler to trace the commands Enterprise Manager is issuing. Getting it into Word is something you'll have to do once the file is generated.


For More Information

See Extracting field information from SQL Server, a user-submitted tip.

Dig Deeper on Microsoft SQL Server Installation

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.