Dim Package
Set Package = CreateObject("DTS.Package2")
'載入該封裝,請自行替換servername,username,password,pasckage name喔
Package.LoadFromSQLServer "servername", "username","password", , , , , "package name"
'秀出屬性LogFileName的值
wscript.echo Package.Properties("LogFileName").Value
'秀出全域變數recFilename的值...假設你有設定recFilename
wscript.echo Package.GlobalVariables("recFilename").Value
'執行
'Package.Execute
Package.UnInitialize
set Package =nothing
0 意見:
張貼留言