In this article we will see how to export data from SQL Server using the wizard which is provided with SSMS (SQL server Management Studio).
Introduction:In this article we will see how to export data from SQL Server using the wizard which is provided with SSMS (SQL server Management Studio). Using SSMS we can perform many tasks such as copying data from one server to the other or from one data source to the other in a variety of formats. Here our task is to do a transform of data from SQL server to Excel using the Wizard.Steps:Step 1: Go to Programs -> Microsoft SQL Server 2005 -> SQL Server Management Studio and connect to the list of server db's which we have to perform the task as shown in the screen below.Step 2: Once you locate the Database where we need to perform the transformation then right click on the database and go to Tasks, then select Export Data. It will open a welcome screen. Click Next and move to the Datasource tab. Step 3: Choose a Datasource tab that helps to select the source of the data transformation selected at the initial stage itself. Once the required information is selected, click on next and it will ensure that the destination source is selected. Step 4: Now the destination data source window will open; here we need to specify the destination (in our example, an Excel sheet) so select Microsoft Excel from the drop down and provide the path for where it should save the Excel sheet.Step 5: Now we need to specify from which table we need to transform the data or we can write our own query based on what data needs to be transformed. Here we can select the table so mark that option and click on next as shown in the following screen.Step 6: Once we click the next button it will show the list of tables to be selected. Select the table which we need to do the transformation and click on preview to double check the output as shown in the following screen and click on Next button.Step 7: Once we are done with the source and destination it will ask to save and execute the package. Click Next and Finish to complete the transformation as shown in the following screen.Step 8: Once we are done it will show the process on the how the task is carried over and shows the final result on the tasks completed as shown in the following screen. If it's completed without any error it will create the Excel sheet at the folder where we specified in the destination tab.Conclusion:In this article we saw how to use the export wizard to make a transformation and to execute the package using the wizard. A sample project is included along with the final result (Excel sheet).
Introducing Microsoft SQL Server 2016