dbTalk Databases Forums  

Advice on DTS and FileImporting

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


Discuss Advice on DTS and FileImporting in the microsoft.public.sqlserver.dts forum.



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

Default Advice on DTS and FileImporting - 02-07-2005 , 09:37 AM






Hi,

I am looking for some advice/ or examples on the best approach for Importing
a text file to a SQL Server DB using DTS and a GlobalVariable for the
pathName.
I plan on executing this DTSPackage from a VB.NET application.

Thank You,

Chris


Reply With Quote
  #2  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: Advice on DTS and FileImporting - 02-08-2005 , 05:21 PM






Chris,
You can change the text file source using your global
variable and to set the DataSource in an ActiveX script,
using something like:
Dim Conn
Set Conn = DTSGlobalVariables.Parent.Connections("Text File
(Source)")
Conn.DataSource =
DTSGlobalVariables("YourGlobalVariable").Value

You can find some examples at sqldts.com. Check the
following article:
How can I change the filename for a text file connection?
http://www.sqldts.com/default.aspx?200

-Sue

On Mon, 7 Feb 2005 07:37:08 -0800, "Chris Lane"
<ChrisLane (AT) discussions (DOT) microsoft.com> wrote:

Quote:
Hi,

I am looking for some advice/ or examples on the best approach for Importing
a text file to a SQL Server DB using DTS and a GlobalVariable for the
pathName.
I plan on executing this DTSPackage from a VB.NET application.

Thank You,

Chris


Reply With Quote
  #3  
Old   
Chris Lane
 
Posts: n/a

Default Re: Advice on DTS and FileImporting - 02-08-2005 , 09:51 PM



Thank You Sue,

I also discovered dynamic properties in SQL 2000 DTS.




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.