dbTalk Databases Forums  

Error messages in SQL execution tasks

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


Discuss Error messages in SQL execution tasks in the microsoft.public.sqlserver.dts forum.



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

Default Error messages in SQL execution tasks - 06-29-2005 , 12:17 PM






Hi,

I'm making a datawarehouse, and I wrote DTS packages which includes several
SQL execution tasks ; each of them include many SQL commands (insert, delete
and update commands). There can be, let's say, between 10 and 40 SQL commands
in a single task.

The problem is, if one of these commands fails, the error message would be
displayed in T-SQL, but what about DTS ? It will not have the task - and
therefore the package - to stop ; which is very dangerous, of course.

Is there a solution ? Or do I have to put only one single SQL command in
each Task ? (but then, the packages would not be easy to maintain !)

Thanks for your help,


Benoit

Reply With Quote
  #2  
Old   
frank chang
 
Posts: n/a

Default RE: Error messages in SQL execution tasks - 06-29-2005 , 01:37 PM






Benoit, Please look at the following link
http://groups-beta.google.com/group/...207d255ad70 e

Allan Mitchell discusses some possible workarounds which may help you.

"Benoit" wrote:

Quote:
Hi,

I'm making a datawarehouse, and I wrote DTS packages which includes several
SQL execution tasks ; each of them include many SQL commands (insert, delete
and update commands). There can be, let's say, between 10 and 40 SQL commands
in a single task.

The problem is, if one of these commands fails, the error message would be
displayed in T-SQL, but what about DTS ? It will not have the task - and
therefore the package - to stop ; which is very dangerous, of course.

Is there a solution ? Or do I have to put only one single SQL command in
each Task ? (but then, the packages would not be easy to maintain !)

Thanks for your help,


Benoit

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.