dbTalk Databases Forums  

Use script task for dynamic properties?

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


Discuss Use script task for dynamic properties? in the microsoft.public.sqlserver.dts forum.



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

Default Use script task for dynamic properties? - 09-06-2006 , 07:51 AM






Hi,

I need to create a very flexible package. It is used for exporting reports
to excel from SQL server 2005, and I don't know in advance what column names
the report will contain. Thus, if I have an OLE DB source I need to set the
SQL dynamically (I think I can do this by letting it use SQL from a
variable.). I also need to set some properties on the Excel destination at
runtime, so that the Excel destination properties can be set at runtime. I
wondered if I could use the script task to handle this, but there seems to be
no way of getting hold of the Excel destination object from there (data
access - sql, name of excel sheet, mappings etc.). And there seems to be no
way to set these properties to be read from a variable.

How can I set these properties at runtime? Will I have to create the a whole
new package programmatically? And will I be able to do this from the script
task?

I have searched for documentation on this, but I think Microsofts examples
are limited, so I anyone has any links or advices I would appreciate it very
much.

Thanks,
Dorte

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.