SQL Server database table Architecture and Data are saved as SQL files

Source: Internet
Author: User
Mysql database users may often export database files as SQL files, but can SQL Server export SQL files? The answer is yes. Let's take a look at the following steps.

Mysql database users may often export database files as SQL files, but can SQL Server export SQL files? The answer is yes. Let's take a look at the following steps.

1. Click database> task> Generate script in your mssql database"

2. Then we will see the next step in the "Generate and release scripts" window.

3. Select the database object for script writing and select the first one for all export. If you want to export some data, check the second one.


4. Click the "advanced" button that appears.

5. Finally, the "Data Type of the script to be written" corresponds to "Architecture and Data", and the export is successful.


Reminder

I use SQLServer2008 here. Other versions should be similar.

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.