On Fri, 05 Apr 2013 16:22:50 -0700, Jeremy Rickard wrote:
> SQLSTATEs can contain letters not just digits. Why not define it as
> CHAR(5) as per normal, then see what code is returned?
>
> Also, as you can capture the returned SQLSTATE without an output
> parameter, unsure why you need this approach.
Absolutely correct that SQLSTATE is CHAR(5).
But my understanding is that it is best to return the SQLSTATE, etc to calling program, otherwise
sometimes you can't see what it is. What approach are you thinking of where that is not necessary?