|
Hi I need the Sql Server Resultsets to be exported to Excel Sheets. There will be multiple queries and it is not fixed. Hence we CANNOT create the destination Excel Sheets in advance. I'm aware of the following script, but for this the excel sheet has to be created in advance... Rgds
(comments are locked)
|
|
Not 100% on the OPENROWSET, but BCP will allow you to do this. Thanks a lot.
Jul 03 '11 at 11:39 PM
Mohan Kumar
(comments are locked)
|
|
Another option is to use Powershell. Within Powershell you can create Excel objects (sheets), run sql and export data - seems like a candidate! Maybe start with this link : http://sqlserverpedia.com/blog/sql-server-bloggers/powershell-and-sql/ Thanks a lot.
Jul 03 '11 at 11:39 PM
Mohan Kumar
(comments are locked)
|
|
Hi could you please let me know some more info about this query.... I would suggest you ask this as a new question, indicating what you want to know...
Nov 19 '12 at 11:10 AM
ThomasRushton ♦
(comments are locked)
|

