dbTalk Databases Forums  

How to dyamicly change excel connection string

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


Discuss How to dyamicly change excel connection string in the microsoft.public.sqlserver.dts forum.



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

Default How to dyamicly change excel connection string - 12-29-2006 , 08:39 AM






Hi,
I have one problem.

In SQL 2005 I have SSI package to export data to some excel files.
I have for loop container with some job (one of the job is generate file
name for exporting data and put the name into variable).
My question is how I can dynamicly change Excel Connection Manager to point
to excel file with the name from my variable?

Thanks in advance.

Radovan



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: How to dyamicly change excel connection string - 12-29-2006 , 08:45 AM






Use a Property Expression and assign the variable's value to the
ExcelFilePath property of the Excel Connection Manager.

--


Allan Mitchell
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com |
http://www.konesans.com




"Radovan" <radovan (AT) servis24 (DOT) hr> wrote


Quote:
Hi,
I have one problem.

In SQL 2005 I have SSI package to export data to some excel files.
I have for loop container with some job (one of the job is generate file
name for exporting data and put the name into variable).
My question is how I can dynamicly change Excel Connection Manager to point
to excel file with the name from my variable?

Thanks in advance.

Radovan


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.