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
 Import/Export (DTS) and Replication (2000)
 DTS

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-02-27 : 11:58:28
Jerry writes "I have what is probable a simple DTS question, but can't seem to find the answer.

I am new to DTS and as is often the case, I have been thrown to the wolves.

I need to know how to set the parameters property of a DTSCreateProcessTask object programmatically from a DTSActiveScriptTask.

I can get the Task or Step object from within the DTSActiveScript task using the following code

DIM pkg
DIM stpCPT
DIM tskCPT

SET pkg = DTSGlobalVariables.Parent

SET stpCPT = pkg.Steps("DTSStep_DTSCreateProcessTask_1")
SET tskCPT = pgk.Tasks("DTSTask_DTSCreateProcessTask_1")

What I do not know is whether I should use the Task or Step object, and the syntax to the command.

In other words, do I use: stpCPT.??? or tskCPT.???

And most import, what is ???

Thank you."
   

- Advertisement -