dbTalk Databases Forums  

DTS - Trapping SQL errors

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


Discuss DTS - Trapping SQL errors in the microsoft.public.sqlserver.dts forum.



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

Default DTS - Trapping SQL errors - 03-23-2006 , 01:15 PM







I am panning to write a DTS (SQLServer 2000) package whcih alters the table
and output any error messages when failed.

I have created Execute SQL Task in which I have wrote the following command.

Alter table Employee ADD EmpStatus char(4) DEFAULT A not null;

I have created a work flow to write the error message to a text file. But I
am having trouble to trap the error message prduced by the Alter statement
(like "column names in each table must be unique. Column name specified int
the table more than once").

Any help will be appreciated.

Thanks

Reply With Quote
  #2  
Old   
vsnk
 
Posts: n/a

Default RE: DTS - Trapping SQL errors - 04-05-2006 , 02:25 PM







Am I thinking wrong or nobody knows answer to this question?

"vsnk" wrote:

Quote:
I am panning to write a DTS (SQLServer 2000) package whcih alters the table
and output any error messages when failed.

I have created Execute SQL Task in which I have wrote the following command.

Alter table Employee ADD EmpStatus char(4) DEFAULT A not null;

I have created a work flow to write the error message to a text file. But I
am having trouble to trap the error message prduced by the Alter statement
(like "column names in each table must be unique. Column name specified int
the table more than once").

Any help will be 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.