From StackOverflow
Just to show yet another option (for SQL Server 2008 and above):
- right-click on Database -> select
Tasks
-> selectGenerate Scripts
- Select specific database objects you want to copy. Let's say one or more tables. Click
Next
- Click
Advanced
and scroll down toTypes of Data to script
and chooseSchema and Data
. ClickOK
- Choose where to save generated script and proceed by clicking
Next
This generates a sql file that contains all the entries of the table. Depending on the size of the table, the file can be big!