Best Way to Trap SQL Error

2010-11-08 Thread Rick Colman

What is the best way to gracefully trap this sort of error ...

Error Executing Database Query. [Macromedia][SequeLink JDBC Driver][ODBC 
Socket][Microsoft][ODBC Microsoft Access Driver] Too few parameters. 
Expected 1.
The error occurred on line 3.

TNX for any suggestions.

Rick.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338940
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Best Way to Trap SQL Error

2010-11-08 Thread James Holmes

Have you tried cftry/cfcatch?
--
WSS4CF - WS-Security framework for CF
http://wss4cf.riaforge.org/



On 8 November 2010 23:07, Rick Colman rcol...@cox.net wrote:

 What is the best way to gracefully trap this sort of error ...

 Error Executing Database Query. [Macromedia][SequeLink JDBC Driver][ODBC
 Socket][Microsoft][ODBC Microsoft Access Driver] Too few parameters.
 Expected 1.
 The error occurred on line 3.

 TNX for any suggestions.

 Rick.

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338943
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Best Way to Trap SQL Error

2010-11-08 Thread Michael Grant

The best way would be to validate the data before getting your database
involved.


On Mon, Nov 8, 2010 at 10:07 AM, Rick Colman rcol...@cox.net wrote:


 What is the best way to gracefully trap this sort of error ...

 Error Executing Database Query. [Macromedia][SequeLink JDBC Driver][ODBC
 Socket][Microsoft][ODBC Microsoft Access Driver] Too few parameters.
 Expected 1.
 The error occurred on line 3.

 TNX for any suggestions.

 Rick.

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338945
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Best Way to Trap SQL Error

2010-11-08 Thread Mike Chabot

A good site-wide error handler that sends alert e-mails would help.
The cferror tag is one method that works well.

-Mike Chabot

On Mon, Nov 8, 2010 at 10:07 AM, Rick Colman rcol...@cox.net wrote:

 What is the best way to gracefully trap this sort of error ...

 Error Executing Database Query. [Macromedia][SequeLink JDBC Driver][ODBC
 Socket][Microsoft][ODBC Microsoft Access Driver] Too few parameters.
 Expected 1.
 The error occurred on line 3.

 TNX for any suggestions.

 Rick.

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338946
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Best Way to Trap SQL Error

2010-11-08 Thread Rick Colman

This was a really good idea, and solved the problem. I validated for an 
integer, and the error went away. TNX.

On 11/8/2010 7:49 AM, Michael Grant wrote:
 The best way would be to validate the data before getting your database
 involved.


 On Mon, Nov 8, 2010 at 10:07 AM, Rick Colmanrcol...@cox.net  wrote:

 What is the best way to gracefully trap this sort of error ...

 Error Executing Database Query. [Macromedia][SequeLink JDBC Driver][ODBC
 Socket][Microsoft][ODBC Microsoft Access Driver] Too few parameters.
 Expected 1.
 The error occurred on line 3.

 TNX for any suggestions.

 Rick.


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338947
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm