Modifies the current value of a specified connection attribute.
ODBC.bdh
OdbcSetConnectAttr( in hDbc : number, in nAttribute : number, in sValue : string): boolean;
true if successful
false otherwise
| Parameter | Description | 
|---|---|
| hDbc | Handle to a database connection. | 
| nAttribute | 
                           
                            Connection attribute whose value is to be modified . This parameter must be set to one of the following values: 
  | 
                        
                     
| sValue | New value for the connection attribute. | 
var hEnv, hDbc : number; dcltrans transaction TLogon begin OdbcAlloc(SQL_HANDLE_ENV, hEnv); OdbcAlloc(SQL_HANDLE_DBC, hDbc, hEnv); OdbcSetConnectAttr(hDbc, SQL_ATTR_AUTOCOMMIT, SQL_AUTOCOMMIT_ON); OdbcConnect(hDbc, "DSN=database;UID=user;PWD=pass;"); end TLogon;