CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 MSSQL - ASP: raiserror problem

Print topic Send  topic

Author Message
jrey

Posts: 1
Posted: 06/15/2005, 12:55 AM

Dear Support,

I am facing following issue and I really need your help :

when updating a record in a sql server table, the error messages generated by 'raiserror' are not always displayed.

The table I am trying to update has a very long trigger that does updates, checks and raises errors. If the error is raised before any update, the error message is displayed correctly, but if there is updates done before the error is raised, no error message is displayed on the web page.

I notice the following in SQL Query Analyzer : when I execute the update using the sql command, I have the following log in the server message ;
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
Server: Msg 50000, Level 16, State 1, Procedure trg_instance_update_instance, Line 115
-E- This Unix account is already used by an instance on this node.

I think the problem comes from the fact there is update message before the error message, but I see no solution :-(

I cannot update the trigger to do the check and raise errors before the updates unfortunately :-(

Have you any suggestion ?

Thanks in advance !!
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.