dbTalk Databases Forums  

how to parameterize a dts package?

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


Discuss how to parameterize a dts package? in the microsoft.public.sqlserver.dts forum.



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

Default how to parameterize a dts package? - 12-14-2005 , 01:53 PM






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.



Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: how to parameterize a dts package? - 12-14-2005 , 02:08 PM






Peter Rilling wrote:
Quote:
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


Reply With Quote
  #3  
Old   
Peter Rilling
 
Posts: n/a

Default Re: how to parameterize a dts package? - 12-14-2005 , 02:18 PM



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

Quote:
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



Reply With Quote
  #4  
Old   
Peter Rilling
 
Posts: n/a

Default Re: how to parameterize a dts package? - 12-14-2005 , 02:18 PM



Sorry, did not read you message completely. I will look at that link,
thanks.

"Darren Green" <darren.green (AT) reply-to-newsgroup-sqldts (DOT) com> wrote

Quote:
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



Reply With Quote
  #5  
Old   
Peter Row
 
Posts: n/a

Default Re: how to parameterize a dts package? - 01-12-2006 , 03:53 AM



Hi,

The global parameters can be mapped to properties of your connection tasks.
At design time a file must exist in order to save any changes to the
connection task
but as specified the global parameter mapping will take over when it's run.

Bye,
Peter
"Peter Rilling" <peter (AT) nospam (DOT) rilling.net> wrote

Quote:
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





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.