![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Using SQL Server 2000, I have a DTS job that imports data from a text file that uses 2 connections and a transform data task. Obiviously the first connection is the text file and the other is the SQL Server database. The problem is that the text file will not always be in the same directory and so I want to pass in the directory location to the DTS job so that it knows where to grab the text file. Does anybody have any good examples or links or how to do this? Thanks |
#3
| |||
| |||
|
|
blue_nirvana wrote: Using SQL Server 2000, I have a DTS job that imports data from a text file that uses 2 connections and a transform data task. Obiviously the first connection is the text file and the other is the SQL Server database. The problem is that the text file will not always be in the same directory and so I want to pass in the directory location to the DTS job so that it knows where to grab the text file. Does anybody have any good examples or links or how to do this? Thanks Look up the Dynamic Properties Task, Global Variables in Books Online. Also look up the /A parameter for DTSRUN. Some articles on connections, including managing them- Connections (http://www.sqldts.com/default.aspx?101) -- Darren http://www.sqldts.com http://www.sqlis.com |
#4
| |||
| |||
|
|
Thanks Darren, but I just decided to create and execute the DTS job in VB.NET. That way it is easy for me to control the datasource for that connection. Also, I don't have to worry about passing a parameter. It surprising works really well and ran very quickely. If there are any concerns that I should know about doing it that way, please let me know. |
![]() |
| Thread Tools | |
| Display Modes | |
| |