简体   繁体   中英

SQL Server Management Studio 2008 R2 Export Structure + Data

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

Any ideas on how this can be achieved? I have tried using the database import/export wizards to no avail...

Right click on database, to go tasks, generate scripts. Make sure you choose the option "Schema and Data" for what "Types of Data to Script" when clicking on the "Advanced" button.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM