Our FE/BE Access (mdb)/SQL Server application is doing very well in a corporative environment for months. However last week, when we needed to introduce an upgrade to the system, adding new functions, the swapping of the FE links between the SQL Servers (2000) for testing, homologation and production (easily done by menu push buttons starting VB programmed functions) stopped working.
As in the mean time my desktop was renewed, the suspect felt first on the PC configuration.
After a bunch of testing we finally ended up with this simple basic operation scenario which should be easy going but doesn’t:
1. creating a new empty access database
2. creating a dsn file for ODBC linking for SQL Server access with SQL login authentication
3. creating the links with a SQL Server manually through the Access menus (external data).
As expected, this works perfect, all tables appear within the Access FE, and one can open and see all SQL Server data stored.
The problem appears after closing and re-opening the app: the links are still there, but do not longer access! When clicking on a table you get a “Connection failed” error message. There is no way to get the connection fixed, whatever data filled in the dialog pop up masks, you always get the “Connection failed” error message.
On the other hand, repeating the manual menu link routine once more will connect (the same tables with suffix “1”) and the tables again become accessible (both the former links and the new ones).
Our Help Desk people tried this on another machine (in other building) and got the same results.
Concluding: although SQL Server access is available and Access is able to establish connections, the established connections fail when restarting the app.
This loss of connection looks even stranger if you consider that the original app, linked to the production SQL Server, keeps running normally and can be freely opened and closed (but not swapped to another Server – i.e. connecting through VB programming also fails)
One hint: after the app re-opening failure msg, the current logged in user appears in one dialog mask i.e. it looks like Access trying to link through Windows Authentication, ignoring the pre-established SQL Authentication.
Does anybody have a clue to this mystery? We are lost!
Thank you very much for any help.
http://www.access-programmers.co.uk/forums
As in the mean time my desktop was renewed, the suspect felt first on the PC configuration.
After a bunch of testing we finally ended up with this simple basic operation scenario which should be easy going but doesn’t:
1. creating a new empty access database
2. creating a dsn file for ODBC linking for SQL Server access with SQL login authentication
3. creating the links with a SQL Server manually through the Access menus (external data).
As expected, this works perfect, all tables appear within the Access FE, and one can open and see all SQL Server data stored.
The problem appears after closing and re-opening the app: the links are still there, but do not longer access! When clicking on a table you get a “Connection failed” error message. There is no way to get the connection fixed, whatever data filled in the dialog pop up masks, you always get the “Connection failed” error message.
On the other hand, repeating the manual menu link routine once more will connect (the same tables with suffix “1”) and the tables again become accessible (both the former links and the new ones).
Our Help Desk people tried this on another machine (in other building) and got the same results.
Concluding: although SQL Server access is available and Access is able to establish connections, the established connections fail when restarting the app.
This loss of connection looks even stranger if you consider that the original app, linked to the production SQL Server, keeps running normally and can be freely opened and closed (but not swapped to another Server – i.e. connecting through VB programming also fails)
One hint: after the app re-opening failure msg, the current logged in user appears in one dialog mask i.e. it looks like Access trying to link through Windows Authentication, ignoring the pre-established SQL Authentication.
Does anybody have a clue to this mystery? We are lost!
Thank you very much for any help.
http://www.access-programmers.co.uk/forums