21

How do I generate scripts for all tables with a single stroke in SQL Server 2000?

Suraj Kumar
  • 5,366
  • 8
  • 19
  • 39
Ganesamoorthy
  • 3,583
  • 8
  • 24
  • 26

1 Answers1

42

You can't do this with one click of a button.

You have to:

  • Right click Database
  • Select All Tasks > Generate SQL Scripts
  • Click Show All
  • Check All Tables
  • Click the Formatting tab. Select the options you require
  • Click the Options tab. You may want to script out the Indexes, Full-Text Indexes, Triggers, Primary & Foreign Keys.
  • Then choose whether you want it all in one file or one file per object.
codingbadger
  • 40,660
  • 13
  • 93
  • 109