To execute a package from a VB app, the SQL Server client components have to be installed on the PC running your app.
This installs a COM component, and you can set a project reference to "Microsoft DTSPackage Object Library". It then take a few lines of code to execute the package:
Set dtsPackage = New DTS.Package
dtsPackage.LoadFromSQLServer ServerName:="MyServer", _
ServerUserName:="MyUserID", _
ServerPassword:="MyPassword", _
PackageName:="MyPackage"
dtsPackage.Execute
You can also create packages at runtime using this object library if that's appropriate.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.