dbTalk Databases Forums  

DTS package with variable

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


Discuss DTS package with variable in the microsoft.public.sqlserver.dts forum.



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

Default DTS package with variable - 07-31-2003 , 07:02 PM






Hi,

I want to create a DTS package which can accept parameters
and only import / export data based on the value of the
parameter.

can anyone please help on how to create such package and
how to execute such package by passing parameter.

Appreciate your help.

Thank you,
Ram.


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

Default Re: DTS package with variable - 08-01-2003 , 12:17 AM






Are you using 2000 ?

If you are then add a Dynamic properties task to your designer as the first task. This can read from a variety of sources and set a variety of properties in your package i.e. Destination Server, Database etc

You can also write an Active Script task that sets properties based on Global Variable values. You can pass in Global variable values on the cmd line using DTSRUN and the /A switch.

You could if using v7 SQL Server have your values stored in a table and use a datapump task to pump the values into Global Variables. You then use the Active Script task to assign them.

Have a look through the site and there are examples of most properties that people reset in a package being reset.

www.SQLDTS.com


--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

Reply With Quote
  #3  
Old   
Jamie Thomson
 
Posts: n/a

Default DTS package with variable - 08-01-2003 , 07:13 AM



You could put the parameter value in a .ini file and read
it in using the Dynamic Properties package which will
populate a global variable which you can then use
throughout your package.

Regards
Jamie


Quote:
-----Original Message-----
Hi,

I want to create a DTS package which can accept parameters
and only import / export data based on the value of the
parameter.

can anyone please help on how to create such package and
how to execute such package by passing parameter.

Appreciate your help.

Thank you,
Ram.

.


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.