Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 2000 Sql Server 2000 dts包中ActiveX脚本任务的问题_Sql Server 2000_Activex_Dts - Fatal编程技术网

Sql server 2000 Sql Server 2000 dts包中ActiveX脚本任务的问题

Sql server 2000 Sql Server 2000 dts包中ActiveX脚本任务的问题,sql-server-2000,activex,dts,Sql Server 2000,Activex,Dts,这行代码的作用是什么 Set Pkg = DTSGlobalVariables.Parent 在以下ActiveX脚本任务中: Function Main() myfilename=inputbox( "Please enter the filename (ex. 2010Nov):") Set Pkg = DTSGlobalVariables.Parent DTSGlobalVariables("filename").Value=myfilename

这行代码的作用是什么

Set Pkg = DTSGlobalVariables.Parent
在以下ActiveX脚本任务中:

Function Main()
    myfilename=inputbox( "Please enter the filename (ex. 2010Nov):")    
    Set Pkg = DTSGlobalVariables.Parent
     DTSGlobalVariables("filename").Value=myfilename
    Main = DTSTaskExecResult_Success
End Function

在Sql Server dts包中

DTSGlobalVariables.Parent-包对象本身。
脚本将其分配给变量Pkg,但不使用它。

DTSGlobalVariables.Parent-包对象本身。 脚本将其分配给变量Pkg,但不使用它