dbTalk Databases Forums  

Dynamic Excel Destination SQL Command in SSIS

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Dynamic Excel Destination SQL Command in SSIS in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ron Ruble
 
Posts: n/a

Default Dynamic Excel Destination SQL Command in SSIS - 08-26-2008 , 02:44 PM






Is there a way to specify the SQLCommand for an excel destination dynamically
in SSIS? It appears the "From Variable" option is limited to sheet names and
range names.

I need to iterate through a series of disconnected row/column offsets within
a single sheet. I can very easily calculate the cell references and open the
SQL Command property as SELECT * FROM [Sheet1$B1:B20] changing the actual
rows/columns each time I loop through a subset of values. But it doesn't
appear that I can use a variable or update the SQL Command at runtime.

Is this true or is there a workaround, preferably not involving adding
several dozen named ranges to the sheet, or dropping down to Excel automation.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.