dbTalk Databases Forums  

Using a variable to indicate source txt file?

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


Discuss Using a variable to indicate source txt file? in the microsoft.public.sqlserver.dts forum.



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

Default Using a variable to indicate source txt file? - 06-16-2004 , 03:54 PM






I'm creating a new connection in the dts designer, I set the
"data source:" as "textfile (source)."

What I'm trying to do is insert a variable in the "file name:"
text field, so that when one runs dtsrunui.exe at the command
prompt one can pass in the filename in question to dts, which
will insert it into the "file name:" text field.

I've been toying around with using a global variable to do this,
but coming up empty. Any ideas or suggestions?

Thanks!



Reply With Quote
  #2  
Old   
DaCount
 
Posts: n/a

Default Re: Using a variable to indicate source txt file? - 06-16-2004 , 05:26 PM






n/m
Similar thread below.

news:2jbqceF106opqU1 (AT) uni-berlin (DOT) de...
Quote:
I'm creating a new connection in the dts designer, I set the
"data source:" as "textfile (source)."

What I'm trying to do is insert a variable in the "file name:"
text field, so that when one runs dtsrunui.exe at the command
prompt one can pass in the filename in question to dts, which
will insert it into the "file name:" text field.

I've been toying around with using a global variable to do this,
but coming up empty. Any ideas or suggestions?

Thanks!





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

Default Re: Using a variable to indicate source txt file? - 06-17-2004 , 12:24 AM



You need to think about it differently.

Use a Dynamic Propertries task to assign a Global Variable value to the
DataSource Property of your Text file. Now make sure this DP task goes
first in the package

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"DaCount" <roy.andersonREMOVE (AT) gmail (DOT) com> wrote

Quote:
n/m
Similar thread below.

news:2jbqceF106opqU1 (AT) uni-berlin (DOT) de...
I'm creating a new connection in the dts designer, I set the
"data source:" as "textfile (source)."

What I'm trying to do is insert a variable in the "file name:"
text field, so that when one runs dtsrunui.exe at the command
prompt one can pass in the filename in question to dts, which
will insert it into the "file name:" text field.

I've been toying around with using a global variable to do this,
but coming up empty. Any ideas or suggestions?

Thanks!







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.