dbTalk Databases Forums  

Problems running a SQL 2K Pkg from a vb.net program

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Problems running a SQL 2K Pkg from a vb.net program in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gordon
 
Posts: n/a

Default Problems running a SQL 2K Pkg from a vb.net program - 09-12-2006 , 04:01 PM






Hi ;

When I try to connect to DTS to execute a pkg like so:

opkg.LoadFromSQLServer("BNG0193265y661y\TRSQL", , ,
DTS.DTSSQLServerStorageFlags.DTSSQLStgFlag_UsedTru stedConnection
, , , ,"transUser_import")

I get the following error:

[DBNETLIB]{COnnectionOpen(Invalid Instance()).]Invalid Connection.

I have verified the server name and the fact that I can use trusted
connection.

I also have a reference set to DTS.

Supposedly all this is all needed in your code is the above plus the
execute method.

Any insights would be greatly appreciated !,

--
Gordon

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.