E
Earl
Built a stored procedure to do an update on a table with 16 fields. When I
tried to update the database with the table data, I got a concurrency error.
Went through the code, the stored procedure, the command parameters, the
whole deal -- everything looked perfect. So I had the DACW build me the same
stored procedure. Reviewed it line-by-line, comparing. It looked
identical -- except for my decimal values, where I had entered the precision
but not the scale. Could not believe that was causing the error, but lo and
behold -- yes, Virginia, failing to specify the scale of your decimal fields
in the stored procedure will cause a concurrency error. Hope that saves
someone else a few hours.
tried to update the database with the table data, I got a concurrency error.
Went through the code, the stored procedure, the command parameters, the
whole deal -- everything looked perfect. So I had the DACW build me the same
stored procedure. Reviewed it line-by-line, comparing. It looked
identical -- except for my decimal values, where I had entered the precision
but not the scale. Could not believe that was causing the error, but lo and
behold -- yes, Virginia, failing to specify the scale of your decimal fields
in the stored procedure will cause a concurrency error. Hope that saves
someone else a few hours.