Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

Re: identity column value increases casuing overflow condition

$
0
0

More details would be helpful. 

Identity values naturally increase; that is their job.

Your issue might be large sudden jumps in the identity values due to abrupt shutdowns of ASE using up the current burning set of values, in which case the solution is probably to specify a much smaller burning set using

sp_chgattribute "table_name", "identity_gap", set_number

Or your issue might be a datatype mismatch between the identity column and variables used to hold the values in the Java client.  If the column datatype supports bigger values than the client's variable supports, that can lead to overflow errors.  Typically this happens when the column is defined as a numeric() and the java client is using integer.  The solution here is typically to create the column based on an integer as well.

 

-bret


Viewing all articles
Browse latest Browse all 3587


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>