http://stackoverflow.com/questions/1515969/exporting-data-in-sql-server-as-insert-into

In SSMS in the Object Explorer, right click on the database right-click and pick "Tasks" and then "Generate Scripts".

This will allow you to generate scripts for a single or all tables, and one of the options is "Script Data" (in 2008). If you set that to TRUE, the wizard will generate a script with INSERT INTO () statement for your data.

In 2008 R2 its "Types of Data to Script" which can be "Data Only", "Schema and Data" or "Schema Only" - the default).

sql2008生成insert语句

Or if that is too complicated for you, you could also check out the "Data Scripter Add-In" for SQL Server Management Studio:

相关文章:

  • 2021-11-24
  • 2022-01-05
  • 2021-11-23
  • 2021-07-28
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-05
  • 2021-06-14
  • 2022-01-30
  • 2022-12-23
  • 2021-12-12
相关资源
相似解决方案