I have 50 databases in SQL Server 2005 and each database has the same table that I use to pull data from. I wrote SQL with cursor in it so that it loops through all the database specified. I got the result in the 50 different result panes. My requirement is to import and display the results in 50 different sheets in the excel spreadsheet. My question: Is there a way in the excel that I can use so that I can display the results in 50 different sheets automatically?
Thank you