Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

raising custom error's with mssql 2k

Status
Not open for further replies.

gareth7

Programmer
Oct 11, 2002
35
GB
I'm using stored procedures in mssql server to do my database updates.
The stored procedures run various checks and use the RAISERROR statement if something fails

I want CF to be able to tell which error was thrown by the database, so it can act accordingly.
Does anyone know how this would be done?

Thanks
 
depends on how the error is sent back to cf. if its a single record you can use a simple cfif. if it returns an actual error you can use cferror.




We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Thanks for the reply.
I'm actually looking for something a bit more detailed

cfcatch.nativeErrorCode is the variable I want to test, but I don't know how I set this with the RAISERROR statement in the stored procedure
 
ask the mssql forum

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top