Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a DTS package from C/C++

Status
Not open for further replies.

Nobel

Programmer
Sep 26, 2003
2
US
Frustrated. The package will not load. Anyone see what is wrong? I am putting in the correct parameters for LoadFromSqlServer(). It compiles but won't load the package.


_Package2 *spPackage = new _Package2();
_variant_t v;
spPackage->LoadFromSQLServer("SEVERNAME", "UserID","Password", 0,"PackagePassword","","", "PackageName",&v);
spPackage->Execute();
spPackage->UnInitialize();

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top