[DB-SIG] Can the cursor.execute method have a timeout specified?

Anjum Naseer tpanjum at hotmail.com
Fri Aug 6 19:24:55 CEST 2004


Hi,

I am running a query which takes a long time and was wondering if there was 
any way of specifying a timeout?

Snippet of code:

c = adodbapi.connect("Provider=SQLOLEDB;Initial Catalog=Test;Data 
Source=(local);Integrated Security=SSPI")
csr = c.cursor()
csr.arraysize = 1000
csr.execute(someLongLastingQuery)

Thanks in advance.

_________________________________________________________________
Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo



More information about the DB-SIG mailing list