sqlsever2008R2 export script

I saw some friends say that SQL Server 2008 is required to export scripts containing data. Later, after careful research, I found that SQL Server 2008 R2 is also possible, just set it in Advanced when exporting.

1. First, right-click on the database and select Task => Generate Script.

2. Select the table to be operated in the pop-up window, and then click Next.

3. Click the Advanced button on the window.

4. Pull the scroll bar to the bottom and you will see "Type of data to be scripted", select Schema and Data or Data Only in the drop-down, other options can be set by yourself, and then OK.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325593756&siteId=291194637