Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Run DTS package from within a DTS....

Author  Topic 

murrayb3024
Yak Posting Veteran

79 Posts

Posted - 2005-03-29 : 15:07:00
Is it possible to start a DTS package from within a DTS package?

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2005-03-29 : 16:51:27
Yes. There is a Data Transformation Task in DTS.

CODO ERGO SUM
Go to Top of Page

hgorijal
Constraint Violating Yak Guru

277 Posts

Posted - 2005-03-30 : 05:01:22
Use the "Execute Package task" or code in a "ActiveX script task" to execute a package

ActiveX script sample :

dim pkg
set pkg = CREATEOBJECT("DTS.Package")
pkg.LoadFromSQLServer "<server_name>",,,256,,,,"<package_name>"

pkg.GlobalVariables("<global_variable_name>").Value = "my_value"
pkg.Execute


Hemanth Gorijala
Exchange a Dollar, we still have ONE each._______Exchange an Idea, we both have TWO each.
Go to Top of Page
   

- Advertisement -