Exporting DB by using SQL Server management Studio

Exporting database from SQL Management studio is very easy and it provides various options to make developer life easy, like:
1) Export the whole database into a single file or single files per project.
2) Export database schema or table data only or both.
3) Export with backward compatibility. You can export database for server version 2005, 2008, 2012 or 2014 from the current version.

Now I am sharing step by step process, how you can export data using Microsoft SQL Server Management Studio(Version 17.3):
1) Right click on database and click on “Task” then look for “Generate Scripts…”

website designing company meerut

2) Ignore the first window of “Introduction” and click next.
3) On “Choose Object” you can select specific objects for exporting. For now you can leave it default and click on next.

website designing company meerut

4) In “Set Scripting Option” window you can select, single file or multiple files per object for your export. If you are selecting single file then you need to specify the file in “File name” or if you choose “single file per object” then you need to select the directory where you need to store all files that are being exported.

website designing company meerut

5) If you click “Advance” button you will get more options for exporting.  Out of all options two options are worth mentioning:
a) You can specify server version for which you are generating the script. Management studio will take care of the rest.
b) And type of data that is going to export i.e. Schema, data or both.
See the screen shot below:

website designing company meerut

Summary tab is final one, which provide all parameter you have chosen like target files(s) or any other option you have selected before you start exporting. Once everything seems fine you can click next button.     website designing company meerut

Save and publish script will show the status of data export. It will take a while to generate all scripts.website designing company meerut

Once it is done, “Finish” Button will be enable. Click “Finish” to close the window and complete the process.website designing company meerut


Leave a Reply

Call Now ButtonCall Now