[python-win32] odbc timeouts
Rickey, Kyle W
Kyle.Rickey at bakerhughes.com
Fri Feb 1 22:51:39 CET 2008
Thanks Tim, I'll give that a shot
-Kyle Rickey
-----Original Message-----
From: python-win32-bounces+kyle.rickey=bakerhughes.com at python.org
[mailto:python-win32-bounces+kyle.rickey=bakerhughes.com at python.org] On
Behalf Of Tim Roberts
Sent: Friday, February 01, 2008 3:12 PM
To: Python-Win32 List
Subject: Re: [python-win32] odbc timeouts
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.
_______________________________________________
python-win32 mailing list
python-win32 at python.org
http://mail.python.org/mailman/listinfo/python-win32
More information about the python-win32
mailing list