I have some ASP (Classic) code that queries a SQL 2005 Express database. I m currently handling programmatically if this DB goes down by handling the error when someone tries to connect and can t. I capture the error and bypass subsequent db queries to this database using a session variable.
My problem is that this first query takes about 20 seconds before it timeouts.
I d like to reduce this timeout length but can t find which property either in the code or database is the right one to reduce.
I ve tried following in the code;
con.CommandTimeout = 5
con.CONNECTIONTIMEOUT = 5
Any suggestions please?
Thanks,
Andy