Getting Started with Adobe After Effects - Part 6: Motion Blur
Ask
Ask questions, discuss or help others by answering
Related Posts · View All
SQL Server 141
TSQL 75
SSRS 70
SSIS 66
XML 54

Top Categories · View All
SQL Server 141
TSQL 75
SSRS 70
SSIS 66
XML 54

Exporting SQLserver table to Excel workbook on multiple worksheets

Apr 26 2012 12:00AM by bebryant   

This is my first time on this forum. I will do my best to describe my question.

I have a table in my database called SerialExtract that has 4 fields. Productnumber, serialnumber, Constraint, Volume. What I need to do for my customer is load this data into an Excel workbook - where there is a tab (worksheet) for each Productnumber in my table, and the associated data for that product on that tab. The tabs need to be dynamic (since the productnumbers will change) - so that each time I run the load it refreshes the excel workbook.

Any suggestions on what type of tool I should use to accomplish this? My initial thoughts were to use SSIS or write a SPROC in SqlServer that can write to the Excel workbook. I can loop through the data by product - just not sure how to write to Excel with different tabs based on data.

thanks!

Barb

Submitted under: Microsoft SQL Server · Microsoft Excel · DBA ·  · 


bebryant
1554 · 0% · 12

1 Replies

  • Use dynamic sql with the code shown here http://beyondrelational.com/modules/2/blogs/70/posts/10792/importexport-to-excel.aspx

    commented on Apr 27 2012 4:35AM
    Madhivanan
    3 · 39% · 12441

Your Reply


Sign Up or Login to post a comment.

    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]