How to restore ODBC connection after failure in MS Access

前端 未结 2 2026
被撕碎了的回忆
被撕碎了的回忆 2021-01-22 00:28

There is a MS Access application with tables on MS SQL Server linked through ODBC. When connection is lost i receive ODBC error 3146. After connection is restored physically i s

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-22 01:08

    Where is your Access table in reference to your SQL Server? If your Access table is local and you are the only one using it then refreshing table links is sufficient. However, if the Access db lives on a server or some other shared space where many people are using it they will not be able to access the SQL tables if you are using a USER DSN. Setting up a system DSN or a dsn file will provide Access with the information it is looking for as to where the SQL tables are.

提交回复
热议问题