How dump database table to excel sheet?

后端 未结 4 582
一整个雨季
一整个雨季 2020-12-21 20:16

I am getting data from my database and I want to have that data as a table in excel file. So, I have written the following :

    Dim sheetToPopulate As Excel         


        
4条回答
  •  暖寄归人
    2020-12-21 20:29

    Look at something like EPlus which seems to be a popular library.

    ... or FileHelpers, where there is a good quickstart showing you how to create a .csv file

    You can just use the export functionality of Sql Server Management studio if it's a one off type job?

提交回复
热议问题