dbTalk Databases Forums  

Execute DTS Package from C#

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


Discuss Execute DTS Package from C# in the microsoft.public.sqlserver.dts forum.



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

Default Execute DTS Package from C# - 12-02-2005 , 06:49 AM






Hi
I have a WinForms client which needs to execute a DTS Package on SQl Server
2000. The Sql Server db is on a server. If I run the client on the server it
executes the package ok, however If I run the client from a remote PC, the
OnQueryCancel event gets fired before the execute and the the event log has
the following error:

In OnError : Event Source : DTSStep_DTSDataPumpTask_1 Error Code :
-2147467259 Source : Microsoft OLE DB Provider for SQL Server Description :
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access
denied. HelpFile : HelpContext : 0 InterfaceError
{0C733A8B-2A1C-11CE-ADE5-00AA0044773D}

not sure how to resolve this, any help would be greatly appreciated.
thanks



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Execute DTS Package from C# - 12-02-2005 , 04:29 PM






Hello parag,

Remember the package will come to you so wherever you say "Go" is where the
package will execute. It looks as though the remote PC cannot see/access
the remote server in step DTSStep_DTSDataPumpTask_1


Allan



Quote:
Hi
I have a WinForms client which needs to execute a DTS Package on SQl
Server
2000. The Sql Server db is on a server. If I run the client on the
server it
executes the package ok, however If I run the client from a remote PC,
the
OnQueryCancel event gets fired before the execute and the the event
log has
the following error:
In OnError : Event Source : DTSStep_DTSDataPumpTask_1 Error Code :
-2147467259 Source : Microsoft OLE DB Provider for SQL Server
Description : [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does
not exist or access denied. HelpFile : HelpContext : 0 InterfaceError
{0C733A8B-2A1C-11CE-ADE5-00AA0044773D}

not sure how to resolve this, any help would be greatly appreciated.
thanks




Reply With Quote
  #3  
Old   
Parag
 
Posts: n/a

Default Re: Execute DTS Package from C# - 12-04-2005 , 11:43 AM



Hi Alan

thanks for the response..
Does that mean that I cannot load and execute a DTS Package from a remote
server locally on a client PC? Is there anyway I can achieve this?

Parag

"Allan Mitchell" wrote:

Quote:
Hello parag,

Remember the package will come to you so wherever you say "Go" is where the
package will execute. It looks as though the remote PC cannot see/access
the remote server in step DTSStep_DTSDataPumpTask_1


Allan



Hi
I have a WinForms client which needs to execute a DTS Package on SQl
Server
2000. The Sql Server db is on a server. If I run the client on the
server it
executes the package ok, however If I run the client from a remote PC,
the
OnQueryCancel event gets fired before the execute and the the event
log has
the following error:
In OnError : Event Source : DTSStep_DTSDataPumpTask_1 Error Code :
-2147467259 Source : Microsoft OLE DB Provider for SQL Server
Description : [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does
not exist or access denied. HelpFile : HelpContext : 0 InterfaceError
{0C733A8B-2A1C-11CE-ADE5-00AA0044773D}

not sure how to resolve this, any help would be greatly appreciated.
thanks





Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Execute DTS Package from C# - 12-04-2005 , 12:23 PM



Hello parag,


You can load a package from a remote server sure look here though

Redistributing DTS with your program
(http://www.sqldts.com/default.aspx?225)


If you want the package to execute actually ON the remote server then look
at firing off a job that fores the package

Allan


Quote:
Hi Alan

thanks for the response..
Does that mean that I cannot load and execute a DTS Package from a
remote
server locally on a client PC? Is there anyway I can achieve this?
Parag

"Allan Mitchell" wrote:

Hello parag,

Remember the package will come to you so wherever you say "Go" is
where the package will execute. It looks as though the remote PC
cannot see/access the remote server in step DTSStep_DTSDataPumpTask_1

Allan

Hi
I have a WinForms client which needs to execute a DTS Package on SQl
Server
2000. The Sql Server db is on a server. If I run the client on the
server it
executes the package ok, however If I run the client from a remote
PC,
the
OnQueryCancel event gets fired before the execute and the the event
log has
the following error:
In OnError : Event Source : DTSStep_DTSDataPumpTask_1 Error Code :
-2147467259 Source : Microsoft OLE DB Provider for SQL Server
Description : [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does
not exist or access denied. HelpFile : HelpContext : 0
InterfaceError
{0C733A8B-2A1C-11CE-ADE5-00AA0044773D}
not sure how to resolve this, any help would be greatly appreciated.
thanks




Reply With Quote
  #5  
Old   
Parag
 
Posts: n/a

Default Re: Execute DTS Package from C# - 12-04-2005 , 01:59 PM



Hi Allan

Thanks for the prompt reply. In that case one of the options would be to use
a webservice which is hosed on IIS on the same server as the SQL Server. This
webservice would then load the package and execute it. My client would call a
method on the webservice to execute the package.
If I do this how can I update a progress bar on my client?

The setup would be :

C# WinForms Client --> calling a method on the webservice on IIS6.0 -->
executea a package on SQL Server 2000.

thanks for the help

"Allan Mitchell" wrote:

Quote:
Hello parag,


You can load a package from a remote server sure look here though

Redistributing DTS with your program
(http://www.sqldts.com/default.aspx?225)


If you want the package to execute actually ON the remote server then look
at firing off a job that fores the package

Allan


Hi Alan

thanks for the response..
Does that mean that I cannot load and execute a DTS Package from a
remote
server locally on a client PC? Is there anyway I can achieve this?
Parag

"Allan Mitchell" wrote:

Hello parag,

Remember the package will come to you so wherever you say "Go" is
where the package will execute. It looks as though the remote PC
cannot see/access the remote server in step DTSStep_DTSDataPumpTask_1

Allan

Hi
I have a WinForms client which needs to execute a DTS Package on SQl
Server
2000. The Sql Server db is on a server. If I run the client on the
server it
executes the package ok, however If I run the client from a remote
PC,
the
OnQueryCancel event gets fired before the execute and the the event
log has
the following error:
In OnError : Event Source : DTSStep_DTSDataPumpTask_1 Error Code :
-2147467259 Source : Microsoft OLE DB Provider for SQL Server
Description : [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does
not exist or access denied. HelpFile : HelpContext : 0
InterfaceError
{0C733A8B-2A1C-11CE-ADE5-00AA0044773D}
not sure how to resolve this, any help would be greatly appreciated.
thanks





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.