dbTalk Databases Forums  

Change the File Name property of a Text File Connection from Activ

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


Discuss Change the File Name property of a Text File Connection from Activ in the microsoft.public.sqlserver.dts forum.



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

Default Change the File Name property of a Text File Connection from Activ - 05-25-2005 , 01:07 PM






I have a requirement to populate a table from a file whose name changes every
time it is run. I can determine the file name using an ActiveX VBScript and
would like to then point the Text File Connection to it. How would I do
this? Or is this the best way to do this?

I am learning but my DTS skill is limited!

Michaele

Reply With Quote
  #2  
Old   
Helge C. Rutz
 
Posts: n/a

Default Re: Change the File Name property of a Text File Connection from Activ - 05-25-2005 , 01:36 PM






Hi Michaele,

"Snake" wrote:
Quote:
I have a requirement to populate a table from a file whose name changes
every
time it is run. I can determine the file name using an ActiveX VBScript
and would like to then point the Text File Connection to it. How
would I do this? Or is this the best way to do this?
this is a common way and there is already a template showing this.
http://www.sqldts.com/default.aspx?200

HTH
Helge




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

Default Re: Change the File Name property of a Text File Connection from Activ - 05-25-2005 , 01:39 PM



No problems "Snake"

You need to set the DataSource Property of the text file connection
object to the name of the file

How can I change the filename for a text file connection?
(http://www.sqldts.com/default.aspx?200)

Allan


"Snake" <Snake (AT) discussions (DOT) microsoft.com> wrote


Quote:
I have a requirement to populate a table from a file whose name changes every
time it is run. I can determine the file name using an ActiveX VBScript and
would like to then point the Text File Connection to it. How would I do
this? Or is this the best way to do this?

I am learning but my DTS skill is limited!

Michaele


Reply With Quote
  #4  
Old   
Snake
 
Posts: n/a

Default Re: Change the File Name property of a Text File Connection from A - 05-25-2005 , 05:37 PM



Thanks!

"Allan Mitchell" wrote:

Quote:
No problems "Snake"

You need to set the DataSource Property of the text file connection
object to the name of the file

How can I change the filename for a text file connection?
(http://www.sqldts.com/default.aspx?200)

Allan


"Snake" <Snake (AT) discussions (DOT) microsoft.com> wrote in message
news:Snake (AT) discussions (DOT) microsoft.com:

I have a requirement to populate a table from a file whose name changes every
time it is run. I can determine the file name using an ActiveX VBScript and
would like to then point the Text File Connection to it. How would I do
this? Or is this the best way to do this?

I am learning but my DTS skill is limited!

Michaele



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.