dbTalk Databases Forums  

Display error if DTS pacjkage doesn't execute

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


Discuss Display error if DTS pacjkage doesn't execute in the microsoft.public.sqlserver.dts forum.



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

Default Display error if DTS pacjkage doesn't execute - 03-07-2006 , 02:23 PM






I execute DTS packages through a stored procedure. I create a Job then
execute the DTS through there like this:

set @cmd = '"C:\PROGRAM FILES\MICROSOFT SQL SERVER\80\TOOLS\BINN\Dtsrun.exe"
/S "(local)" /N "' + @dts + '" /ADatabaseName="'+ @DatabaseName +'" /W "0"
/E '


However what I am not sure how to do is get the error returned and print it
from the Stored Proc if the DTS failed . In my case violation of the primary
Key will cause the DTS to fail if executed with the above manner

Thanks,

Leo



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.