You are viewing an old version of this article. View the current version here.

All CLI functions return a 16-bit value. We refer to this value as the SQLRETURN value because sqlcli.h contains this line:

  typedef SQLSMALLINT SQLRETURN;

In standard SQL there are only six possible SQLRETURN values:

-2"invalid handle".
-1"error".
0"success".
1"success with info".
99"need data".
100"no data".

Programs should check these values, but for space reasons we leave SQLRETURN out of many of our examples.

Comments

Comments loading...