Solved

SQL0438N

Posted on 2006-11-01
2
3,038 Views
Last Modified: 2007-12-19
hi ee

  what does this error stand for. I couldnt find it on any reference clearly explained. In my scenario, I have a insert taking place for a field that doesnt allow nulls and the value I am inserting is a null. But for inserting a null in a nonnullable field there is another SQLcode thats raised as far as i know. Please educate

thx
0
Comment
Question by:LuckyLucks
2 Comments
 
LVL 37

Accepted Solution

by:
momi_sabag earned 500 total points
ID: 17849721
hi

here is the explanation for this code


SQL0438N Application raised error with diagnostic text:
          "<text>".

Explanation:

This error or warning occurred as a result of execution of the
RAISE_ERROR function or the SIGNAL SQLSTATE statement in a
trigger.  An SQLSTATE value that starts with '01' or '02'
indicates a warning.

User Response:

See application documentation.

 sqlcode :  -438, +438

 sqlstate :  application-defined


i guess that you are using a trigger to perform your insert, and in the trigger you catch the exception and use a sql SIGNAL command in order to raise an error
is that true ?
0
 

Author Comment

by:LuckyLucks
ID: 17851860
ya , thanx
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now