How to Copy SQL Table into Excel and Other Formats

How to take SQL Table into Excel and Formats

1. Open ssms2012->databases->sample database

Image1.jpg

2. Click that export data ther is a new window open like below.

 Image2.jpg

3. Choose the datasource,there is a lot of datasources dropdownded here,

Image3.jpg

4. Choose the source database here dbo.sample is a source database.

Image4.jpg

5. Here you choose designation Database or other foramts like oldb,excel formats

Image5.jpg

6. Then excel file path

Image6.jpg

7. Select the first radio button for copy or second radio button for query to write the data choose any one

Image7.jpg

8. Click next->select table you want to copy

Image8.jpg

9. If you want edit the columns means you have to use this window editmapping

Image9.jpg

10. You can check the preview for here

Image10.jpg

11. Click next

Image11.jpg

12. Finish

Image12.jpg

13. After click finish you can see files can be transferred like below

Image13.jpg

14.Go to->myDocuments open the excel file already you created and all datas come to excel sheet that's all

Image14.jpg