简体   繁体   中英

How to dump the script from sql server?

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.

From SQL Server Management Studio, pick your database in Object Explorer and right-click, then Tasks > Generate Scripts and follow the wizard:

在此处输入图像描述

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