can't add a .accde MS access file(located outside the project folder) as AccessDataSource

本小妞迷上赌 提交于 2019-12-25 17:48:43

问题


I'm pretty sure that the .accde file does exist. I noticed that VS asks for .mdb file, but a .accde is also a MS Access generated database file.

Here is the screenshot(hope it helps):


回答1:


From the MSDN AccessDataSource page.

The AccessDataSource class does not support connecting to Access databases that are protected by a user name or password, because you cannot set the ConnectionString property. If your Access database is protected by a user name or password, use the SqlDataSource control to connect to it so that you can specify a complete connection string.

So the .accde is protected in terms of security. Try use SqlDataSource.



来源:https://stackoverflow.com/questions/7550272/cant-add-a-accde-ms-access-filelocated-outside-the-project-folder-as-accessd

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