SQL Server Management Studio 2008 R2 Export Structure + Data

I want to export the structure and data in my database to a .sql file, then to execute as a query on another computer.

Any ideas on how to achieve this? I tried to use the database import / export wizard to no avail ...

+7
sql sql-server-2008
source share
1 answer

Right-click on the database to run tasks, generate scripts. Make sure you select the "Schema and Data" option for "Script Data Types" when you click the "Advanced" button.

+14
source share

All Articles