![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi. I am creating a DTS package that has a number of tasks. The primary purpose of this DTS is to import and process data from local delimited file. I have a data source connection that wraps the source file content and allows the system to see it as just another database. Right now the path to the local files are hardcode. I would like them to be dynamic. Is there any way to parameterize the DTS so that I can simply pass information just as file paths into the package. |
#3
| |||
| |||
|
|
Peter Rilling wrote: Hi. I am creating a DTS package that has a number of tasks. The primary purpose of this DTS is to import and process data from local delimited file. I have a data source connection that wraps the source file content and allows the system to see it as just another database. Right now the path to the local files are hardcode. I would like them to be dynamic. Is there any way to parameterize the DTS so that I can simply pass information just as file paths into the package. Look at using the Dynamic Properties task to read from a location and assign the property. If you need to manipulate the values then use an ActiveX Script Task. Another good way of passing data into a package is to use global variables, which can be set through the /A parameter for DTSRUN. This may be of use- How can I change the filename for a text file connection? (http://www.sqldts.com/default.aspx?200) -- Darren http://www.sqldts.com http://www.sqlis.com |
#4
| |||
| |||
|
|
Peter Rilling wrote: Hi. I am creating a DTS package that has a number of tasks. The primary purpose of this DTS is to import and process data from local delimited file. I have a data source connection that wraps the source file content and allows the system to see it as just another database. Right now the path to the local files are hardcode. I would like them to be dynamic. Is there any way to parameterize the DTS so that I can simply pass information just as file paths into the package. Look at using the Dynamic Properties task to read from a location and assign the property. If you need to manipulate the values then use an ActiveX Script Task. Another good way of passing data into a package is to use global variables, which can be set through the /A parameter for DTSRUN. This may be of use- How can I change the filename for a text file connection? (http://www.sqldts.com/default.aspx?200) -- Darren http://www.sqldts.com http://www.sqlis.com |
#5
| |||
| |||
|
|
Will this also allow me to change the source location of a text file connection? I want to specify the location at runtime but the Sql designer requires a file path. "Darren Green" <darren.green (AT) reply-to-newsgroup-sqldts (DOT) com> wrote in message news:uULPxoOAGHA.2132 (AT) TK2MSFTNGP14 (DOT) phx.gbl... Peter Rilling wrote: Hi. I am creating a DTS package that has a number of tasks. The primary purpose of this DTS is to import and process data from local delimited file. I have a data source connection that wraps the source file content and allows the system to see it as just another database. Right now the path to the local files are hardcode. I would like them to be dynamic. Is there any way to parameterize the DTS so that I can simply pass information just as file paths into the package. Look at using the Dynamic Properties task to read from a location and assign the property. If you need to manipulate the values then use an ActiveX Script Task. Another good way of passing data into a package is to use global variables, which can be set through the /A parameter for DTSRUN. This may be of use- How can I change the filename for a text file connection? (http://www.sqldts.com/default.aspx?200) -- Darren http://www.sqldts.com http://www.sqlis.com |
![]() |
| Thread Tools | |
| Display Modes | |
| |