Re: parameter driven DTS
- From: "Senthilkumar" <kesk32@xxxxxxxxxxx>
- Date: Sat, 30 Sep 2006 23:06:49 +0530
the actual code is given below from my form: the string "newSUID" is set as
the globalvariables in the DTS package
Dim package As DTS.Package2Class
package = New DTS.Package2Class
Dim filename As String
Dim password As String
Dim packageID As String
Dim versionID As String
Dim name As String
Dim pVarPersustStgOfHost As Object
filename = "c:\New.dts"
password = ""
packageID = ""
versionID = ""
name = "New"
' assign the global variable a value here
package.GlobalVariables.Item("newSUID").Value =
"1.3.6.1.4.1.2452.6.120050221.20844.304.1416026628"
pVarPersustStgOfHost = Nothing
package.LoadFromStorageFile(filename, _
password, packageID, versionID, _
name, pVarPersustStgOfHost)
Try
package.Execute()
Catch ex As Exception
MsgBox(ex.ToString)
Finally
package.UnInitialize()
package = Nothing
End Try
Any ideas and help pls
kesk
.
- References:
- parameter driven DTS
- From: Senthilkumar
- parameter driven DTS
- Prev by Date: Re: DTS export to Excel with VB
- Next by Date: Re: Missing Edit Features for DTS200 Packages in SQL Server 2005
- Previous by thread: parameter driven DTS
- Next by thread: SQL Server To Oracle
- Index(es):
Relevant Pages
|