C
clt1dpw
I have an Access ADP project that is connected to a SQL DB in the back end.
I have quite a few cleints using the application(100+ to assorted DBs), but
every so often I have one client that the application locks up on to the
point of having to use Task Manager to close the application.
These few Clients that are having the lost connections problem, I have been
able to trace the problem down to lost packets on there networks.
Since the ADP maintains a constant connection, if a packet is lost, the
application freezes.
Now I have placed a connection tester in the application, so that it tests
the connection every XX seconds. The test involves a simple Select statement
to a small table in the DB. If the application cannot connect, I can capture
the error.
Now the problem is tring to re-establish the connection. I have tried closing
the connection with
Application.CurrentProject.CloseConnection
Application.CurrentProject.OpenConnection strConnection
strConnection is the connection string that connects to the database and
it works because this is the Application connection string that is used to
start the application and stored in memory.
When I try these procedures in either order or by themselves, I get
automation errors and cannot re-connect to the database unless I close the
application or use the File>Connection>Test Connection option(which the
client can not get to).
I would think this would be simple, but I have not found the solution yet.
Any one go any ideas.
Thank you in advance.
I have quite a few cleints using the application(100+ to assorted DBs), but
every so often I have one client that the application locks up on to the
point of having to use Task Manager to close the application.
These few Clients that are having the lost connections problem, I have been
able to trace the problem down to lost packets on there networks.
Since the ADP maintains a constant connection, if a packet is lost, the
application freezes.
Now I have placed a connection tester in the application, so that it tests
the connection every XX seconds. The test involves a simple Select statement
to a small table in the DB. If the application cannot connect, I can capture
the error.
Now the problem is tring to re-establish the connection. I have tried closing
the connection with
Application.CurrentProject.CloseConnection
Application.CurrentProject.OpenConnection strConnection
strConnection is the connection string that connects to the database and
it works because this is the Application connection string that is used to
start the application and stored in memory.
When I try these procedures in either order or by themselves, I get
automation errors and cannot re-connect to the database unless I close the
application or use the File>Connection>Test Connection option(which the
client can not get to).
I would think this would be simple, but I have not found the solution yet.
Any one go any ideas.
Thank you in advance.