Use SQL Server’s Generate Scripts commend
- right click on the database; Tasks -> Generate Scripts
- select your tables, click Next
- click the Advanced button
- find Types of data to script – choose Schema and Data.
- you can then choose to save to file, or put in new query window.
- results in
CREATE
andINSERT
statements for all table data selected in bullet 2.