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)
 ExecutePackage inner global variables...

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-04-25 : 22:14:45
John writes "Platform: SQL Server 2000 DTS/Win 2000
Within an ActiveX script I am trying to dynamically set three inner global variables for an 'Execute Package Task' with the description ExecPackage defined in my DTS designer. This task calls a reusable package with Dynamic Properties Task that defines Bulk Inserts properties. I have reviewed the DTS object model within the SQL Server 2000 DTS book(Mark,Brian,Todd) and looked at some examples but to no avail found the correct syntax for setting these inner global variable values. In fact, besides the gui examples I found nothing on VBScript and inner global variables in any articles. Any thouhgts?

Inner global variables:
DestinaionTable
Filename
FormatFile

I was able to step through and identify the Execute Package Task name only:

For Each oTask In oPkg.Tasks
If oTask.Description = "ExecPackage" Then
msgbox oTask.Name
End If
Next

output: DTSStep_DTSExecutePackageTask_1"
   

- Advertisement -