What are db2 error codes -305 and -407. What is the
difference between these 2 error codes ?



What are db2 error codes -305 and -407. What is the difference between these 2 error codes ?..

Answer / amarnadh reddy

Hi,
-305 is Null Indicator is needed. The null value cannot be
assigned to output host variable. Because no Indicator
variable is specified. (to fetch or select operation
resulted in the retrieval of a null value to be inserted
into the output host vaariable)

-407 is An update or insert value is null. but the object
column name cannot contain null values.(the update or insert
value was null. But the object column was declared as not
nullin the table)

Is This Answer Correct ?    11 Yes 0 No

Post New Answer

More DB2 Interview Questions

How to execute stored procedure in db2 command editor?

0 Answers  


What is sqlcode -922 ?

2 Answers  


How many types of page locks can be held in db2?

0 Answers  


My cobol program(not having any sql statements) is calling another cobol program ( having sql statements), what is needed for compilation and run in jcls .

3 Answers   Cap Gemini, RBS,


Return code 100 means?

6 Answers   Cap Gemini,






before altering a table is it necessary to lock ? if lock what is it ? how to do ? ifi want to lock a table what is that command ?

0 Answers   IBM,


What are foreign keys in db2?

0 Answers  


what is diffrence b/w file-aid tool and file-aid utility???

1 Answers  


How to take backup of table in db2?

0 Answers  


How to resolve -504 sql code in DB2?

2 Answers   Cap Gemini,


What is correlated subquery?

1 Answers  


db2 restart logic ?

1 Answers   DELL, HTC, UHG,


Categories