[python-win32] odbc timeouts
Tim Roberts
timr at probo.com
Fri Feb 1 22:12:19 CET 2008
Rickey, Kyle W wrote:
>
> Is it possible to change the default timeout for an odbc connection?
> For instance:
>
>
>
> import odbc
>
>
>
> conn = odbc.odbc(DBNAME)
>
>
>
> It seems to timeout ~15 seconds. But the above method only takes 1
> argument. Is it possible to set a timeout in the connection string?
>
You can add "Connect Timeout=120;" to your connection string.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list