Where is the database connection information in an ADP file? [closed]

…衆ロ難τιáo~ 提交于 2020-01-03 12:45:05

问题


A user entered a ticket for an OLD Access database and form project that they use daily. They are saying that the database cannot be found when they use it. I haven't used MS Access to design a database or interface since college so I have no idea where to find the database it's trying access.

I want to try and locate the DB to see if 1) it exists and 2) is not corrupt

The main interface is done through a *.adp file. Where is the connection string information stored in the file?

Ive opened it in MS Access 2007.


回答1:


With an ADP, SQL Server is used for all data storage.

In the Immediate window (go there with Ctrl+g), inspect the ConnectionString and Provider properties:

? CurrentProject.Connection.ConnectionString
? CurrentProject.Connection.Provider


来源:https://stackoverflow.com/questions/14389543/where-is-the-database-connection-information-in-an-adp-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!