Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Trapping system errors in an error log while running a Stored Procedure

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-11-13 : 09:43:34
Tanveer writes "Hi,

I would like to store the system errors (from sysmessages) which I encounter while running my Stored Procedure. I would like to store the exact message for eg.

INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'FK_doc_sale_charge_dtl_doc_sale'. The conflict occurred in database 'JL_Prod', table 'doc_sale', column 'sale_id'.

Thanks.
Tanveer."
   

- Advertisement -