Script out table along with Data in SQL Server

Right click on any database and --->Task-->Generate Scripts and you can see the wizard like below.

Now click on Next button, you will get the below image, choose required table or all the tables based on your requirement
.
After you click on next button,it will show you below image and ask for the options like  do you want to scipt ou the info to file or new query editor winow. In my case i have chosen to new query editor window. And you can also see an advanced tab where you can level schema level permissions.

After you click on Advanced button, change this below option and it will script out table with data.

Once you click on okay and go next this will generate a table with data.




Comments

Popular posts from this blog

System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out

Pre login Handshake or Connection Timeout Period

Transparent Data Encryption(TDE) with Master Key and Certificate in SQL Server