Reputation: 45
I would like to dump a script for all the tables in the database. I guess it can be done through
database->right-click->tasks->export Data
But I don't know how exactly to do this. Please help. I am looking for a script with CREATE TABLE command.
Upvotes: 3
Views: 311
Reputation: 755471
From SQL Server Management Studio, pick your database in Object Explorer and right-click, then Tasks > Generate Scripts
and follow the wizard:
Upvotes: 3