View Single Post

   
  #1 (permalink)  
Old 02-27-2008, 05:42 AM
ajay978@gmail.com
 
Posts: n/a
Default SetConnectAttr ODBC

Hi,
I am trying to call SQLSetConnectAttr api but I am getting following
error:
SQLSTATE: HY024
Native: -99999
Message: [IBM][CLI Driver] CLI0191E Invalid attribute value.
SQLSTATE=HY024

I have created connection successfully but whiling setting connection
autocommit mode to false I am getting above error.

SQLUINTEGER autocommit;
autocommit = SQL_AUTOCOMMIT_OFF;
rc = SQLSetConnectAttr( hdbc, SQL_ATTR_AUTOCOMMIT, (void
*)&autocommit, 0);

Could some pls help ?

Regards
Ajay

Reply With Quote