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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Server Errors, Cold Fusion and ODBC Errors

Status
Not open for further replies.

abeckwith

MIS
Feb 14, 2002
8
US
I have a stored procedure that does a simple insert into a table. The procedure is called from Cold Fusion and even though I am trapping errors in the procedure, ODBC displays its own error message immediately and Cold Fusion never receives the error message that I am returning from SQL Server.

How can I stop ODBC from displaying its own error message? Can I stop SQL Server from sending the error message to ODBC or can I trap the ODBC error message in Cold Fusion?

Thanks
Angela
 
You can trap the error using cftry and cfcatch. You could then handle the error gracefully and do what ever you want such as send you an email!

HTH

Kola
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top