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
 General SQL Server Forums
 New to SQL Server Programming
 Custom SQL Error Message

Author  Topic 

MsLady
Starting Member

5 Posts

Posted - 2005-12-19 : 15:07:56
When the user does not have permissions to select, update, or delete a record I would like to write a custom error message to capture the sql error. I have tried "On Error Resume Next", which bypasses the error. Using an include file that will handle all the query errors that is accessible to the entire ASP application is the goal.

Thank you for the assistance.

MsLady

activecrypt
Posting Yak Master

165 Posts

Posted - 2005-12-19 : 23:57:42
Hi,
you can use raiserror statement for custome error message in sql server . and refer sp_addmessage to add custome message in sql server.

:-)
Regards

Andy Davis
Activecrypt Team
--------------------------------------------
SQL Server Encryption Software
http://www.activecrypt.com
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-12-20 : 01:05:13
In ASP, I think you can make use of Error.Collection object

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -