CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Trap SQL Errors

Print topic Send  topic

Author Message
Andres Rormoser
Posted: 08/25/2005, 8:00 AM

Hi,
I have Table1 witch has a Unique Key based on two fields. I need to validate this in a
Editable Grid. I tried to do that on the OnValidate Event but there i don't have access to
all the rows that i'm going to insert, right? So my question is how do I trap SQL errors
and display a friendly message rather than the cryptic SQL Server message?

In the After Submit event Help one application saids: Processing query errors. But it do
not says how.

Thanks,
Andres Rormoser

donrule

Posts: 2
Posted: 09/06/2005, 5:56 AM

I'm having the same problem. SQL allows me to check multiple fields to determine if it is a duplicate, but the errors it returns are not at all user friendly. Is there a way in CodeCharge to either check multiple fields to determine validation or change an SQL error message to make it more friendly? As an example, SQL is currently returning the following very unfriendly message: "Violation of UNIQUE KEY constraint 'IX_tblTapeRecordEOPf'. Cannot insert duplicate key in object 'tblTapeRecordEOPf'. (Microsoft OLE DB Provider for SQL Server)"
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.