SQL Server 2008 Import and export SQL files

Source: Internet
Author: User

Export table data and table structure SQL files

In the daily development process, it is often necessary to export some of the table data in a database, or the structure of a table, the data to be modified, you need to export the table's SQL structure in the database, including the table statement and data storage statements! At this time, you can use this method to operate!

steps to read

Baidu Experience: jingyan.baidu.com

Tools/Materials
    • sqlserver2008

Baidu Experience: jingyan.baidu.com

Method/Step
  1. 1

    Open sqlserver2008, after successful connection, select the database to which you want to export the table-Task---generate script

    Steps to read
  2. 2

    Display: Generate and Publish Script window--Introduction (some may close the page, you can omit this step), click Next

    Steps to read
  3. 3

    Display: Generate and publish Scripts window--Select objects--Follow the pictures

    Steps to read
  4. 4

    Show: Generate and Publish Script window--Set scripting options--Follow the picture

    Steps to read

  5. 5

    After clicking on Advanced, pop-up--Advanced scripting options, select General--the data type of the script to be written--schema and data (this step is important)--Select Click OK--click Next

    Steps to read
  6. 6

    Display: Generate and Publish Script window--summary--next--complete

    steps to read END

importing and executing SQL files

Click "File", "open"-"file (F) ..."

SQL Server 2008 Import and export SQL files

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.