不能在.accde MS访问文件(位于项目文件夹外)为的AccessDataSource添加 [英] can't add a .accde MS access file(located outside the project folder) as AccessDataSource

查看:182
本文介绍了不能在.accde MS访问文件(位于项目文件夹外)为的AccessDataSource添加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是pretty的确保.accde文件确实存在。我注意到VS要求.mdb文件,但.accde也是一个的MS Access生成的数据库文件。

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):

推荐答案

从MSDN的的AccessDataSource 页。

本的AccessDataSource类不支持连接到访问   是由一个用户名或密码保护的数据库,因为你   无法设置ConnectionString属性。如果你的Access数据库   通过用户名或密码保护,使用的SqlDataSource 控件   连接到它,这样你可以指定一个完整的连接字符串。

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.

所以.accde被保护在安全方面。尝试使用的SqlDataSource

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

这篇关于不能在.accde MS访问文件(位于项目文件夹外)为的AccessDataSource添加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆