[unixODBC-support] ODBC timeout setting

Peter Harvey pharvey at peterharvey.org
Tue Apr 24 17:54:51 BST 2007


Withers, John wrote:
>
> Hello, is there is a timeout setting I can put into the .odbc.ini 
> file?  I have hunted all over for this, but have not been able to see 
> anything.
>
>  
>
> Thanks,
>
>  
>

you can check...

- SQL_ATTR_QUERY_TIMEOUT
- SQL_ATTR_CONNECTION_TIMEOUT
- SQL_ATTR_LOGIN_TIMEOUT

...in the ODBC specification (SQLSetConnectAttr and SQLSetStmtAttr). 
How/if these are implemented depends upon the driver you are using. The 
driver *may* have additional options via DSN attributes (odbc.ini etc) 
but in this case - usually not. Check you driver documentation.


--
Peter




More information about the unixODBC-support mailing list