G
Guest
Hi,
I have an adp application that uses a very large DB (SQL server 2000).
The tables are large and querys might take more than 30 sec to complete.
My problem is that the CurrentProject.Connection.CommandTimeout is read only
and cannot be changed using VB (no idea why).
I saw a few examples how to override this by creating an ADO.Command object
or by creating a different connection and it's working OK - The problem is
that all the forms & recordsets in the application uses this connection by
default (like listboxes, combos, forms, reports etc) and it would be wrong to
write code for each one of them seperately.
I also have indexes all over the tables and have a procedure to rebuild them
periodically to keep the db in top shape - but sometimes the network is
causing the delay.
There must be a way to change this setting - so it would affect the entire
application.
Please help
I have an adp application that uses a very large DB (SQL server 2000).
The tables are large and querys might take more than 30 sec to complete.
My problem is that the CurrentProject.Connection.CommandTimeout is read only
and cannot be changed using VB (no idea why).
I saw a few examples how to override this by creating an ADO.Command object
or by creating a different connection and it's working OK - The problem is
that all the forms & recordsets in the application uses this connection by
default (like listboxes, combos, forms, reports etc) and it would be wrong to
write code for each one of them seperately.
I also have indexes all over the tables and have a procedure to rebuild them
periodically to keep the db in top shape - but sometimes the network is
causing the delay.
There must be a way to change this setting - so it would affect the entire
application.
Please help