How to save SQL Server data as Insert INTO SQL Script

來源:互聯網
上載者:User

/*Author : Jiangong SUN*/


If you have wondered to clean a table data, and want to save the original data in a backup sql script. 

Here is a solution for it.


Right click your database ->  click "Tasks" -> then click "Generate Scripts"


Then you will see an interface : "Generate scripts for database objects", 


->click "Next",  then "Select specific database objects",  

-> then "Tables" with specific tables.

-> "Specify how script should be saved or published", and click "Advanced" , In the options, choose "Types of data to script" and modify it to "Data only".

-> click "Next" and then finish.


And then your "INSERT INTO" scripts are generated.


I hope this post can do help to your work! 

相關文章

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.