SQL Server export File/table schema and data operation steps _mssql

Source: Internet
Author: User

Many friends ask the SQL Server database "Generate script" to export only the SQL scripts for the database, while the table and table data still do not come out. Very simple, look at the tutorial:

Note: I use the SQLServer2008 here, the other version should be similar.

First, select the database –> task you want to export –> build script (or in the task have generate script this option, look for what can be found!) )

Second, the "Build and publish Scripts" window appears, click Next

Third, choose the database object to script, all export Select the first, if you want to export some of the data tick the second one is good

Click on the "Advanced" button (emphasis) after this screen appears.

V. "Types of data to script" correspondence: "Schemas and data"

Six, determine, next, next, accomplished.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.