Link to home
Start Free TrialLog in
Avatar of camper12
camper12

asked on

Query timeout

Hi,

I have a sql query that takes 2 minutes to run. It runs fine but when I use it in VBA it gives me a query timeout error. Is there a setting that I need to change or include some code in vba.

Thanks
Avatar of Kelvin Sparks
Kelvin Sparks
Flag of New Zealand image

I'm guessing that your VBA is using an ODBC connection. Br default this has a timeout of 60 seconds. Generally, you can alter this in the registry to a higher value. I'm not sure if you're using Excel or Access to run this against SQL Server


Kelvin
Avatar of camper12
camper12

ASKER

I am using excel.
ASKER CERTIFIED SOLUTION
Avatar of Mlanda T
Mlanda T
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial