SQL Server R2 making database structure and data scripts

Source: Internet
Author: User

The database contains many tables and data, and sometimes you need to create a script to export the table structure along with the data

Here's how:

1. Right-click the database and select Tasks---> Generate script

2. According to the requirements, select the object to make the script, the general situation select "Table"

3. Select the script generation method, as required. Personal habits choose to generate to a new query window.

4. By default, only script for table structure is made. If necessary, click "Advanced", in which "Scripting data type" is selected "Structure and data"

And then all the way next.

SQL Server R2 making database structure and data scripts

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.