dbTalk Databases Forums  

running DTS from Stored Proc

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


Discuss running DTS from Stored Proc in the microsoft.public.sqlserver.dts forum.



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

Default running DTS from Stored Proc - 08-26-2005 , 10:13 AM






I've created a DTS that gets data from a foxpro source into a SQLServer
destination.
The DTS runs perfectly fine through the Enterprise manager, and infact works
fine on the command line, but when I try to initiate it through a Stored Proc
(I use :
EXEC @result = master.dbo.xp_cmdshell 'dtsrun /S <db> /U <admin> /P <pwd>
/N <DTS>') and I get this list of errors
-------------------------------------------
DTSRun: Loading...
DTSRun: Executing...
DTSRun OnStart: DTSStep_DTSDataPumpTask_1
DTSRun OnStart: DTSStep_DTSDataPumpTask_2
DTSRun OnStart: DTSStep_DTSDataPumpTask_3
DTSRun OnError: DTSStep_DTSDataPumpTask_2, Error = -2147221005 (800401F3)
Error string: Invalid class string

Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp
Help context: 1100

Error Detail Records:

Error: -2147221005 (800401F3); Provider Error: 0 (0)
Error string: Invalid class string

Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp
Help context: 1100


Error: -2147221005 (800401F3); Provider Error: 0 (0)
Error string: Invalid class string

Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp
Help context: 4700

DTSRun OnFinish: DTSStep_DTSDataPumpTask_2
DTSRun OnError: DTSStep_DTSDataPumpTask_3, Error = -2147221005 (800401F3)
Error string: Invalid class string
-------------------------
I though that it was a permissions issue, but I moved the data source to the
same machine as the SQLServer instance, and I still get this error.

Can anybody shed some light on this issue?

Thanks
Sinisa

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

Default Re: running DTS from Stored Proc - 08-27-2005 , 02:24 AM






Where is the stored proc? On the local box also?

What does DTSStep_DTSDataPumpTask_2 do?

What version of SQL Server with Service Pack.

The following articles explain the times I have most often see this erro
rmessage

http://support.microsoft.com/?kbid=288910


Service Pack and Version Compatibility Problems
(http://www.sqldts.com/default.aspx?223)







"Sinisa Stokic" <SinisaStokic (AT) discussions (DOT) microsoft.com> wrote

Quote:
I've created a DTS that gets data from a foxpro source into a SQLServer
destination.
The DTS runs perfectly fine through the Enterprise manager, and infact
works
fine on the command line, but when I try to initiate it through a Stored
Proc
(I use :
EXEC @result = master.dbo.xp_cmdshell 'dtsrun /S <db> /U <admin> /P <pwd
/N <DTS>') and I get this list of errors
-------------------------------------------
DTSRun: Loading...
DTSRun: Executing...
DTSRun OnStart: DTSStep_DTSDataPumpTask_1
DTSRun OnStart: DTSStep_DTSDataPumpTask_2
DTSRun OnStart: DTSStep_DTSDataPumpTask_3
DTSRun OnError: DTSStep_DTSDataPumpTask_2, Error = -2147221005 (800401F3)
Error string: Invalid class string

Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp
Help context: 1100

Error Detail Records:

Error: -2147221005 (800401F3); Provider Error: 0 (0)
Error string: Invalid class string

Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp
Help context: 1100


Error: -2147221005 (800401F3); Provider Error: 0 (0)
Error string: Invalid class string

Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp
Help context: 4700

DTSRun OnFinish: DTSStep_DTSDataPumpTask_2
DTSRun OnError: DTSStep_DTSDataPumpTask_3, Error = -2147221005 (800401F3)
Error string: Invalid class string
-------------------------
I though that it was a permissions issue, but I moved the data source to
the
same machine as the SQLServer instance, and I still get this error.

Can anybody shed some light on this issue?

Thanks
Sinisa



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.