询问者
winxp 运行程序连接加密码的数据库出错

问题
全部回复
-
陈锦巍 你好,
针对你的错误信息,我需要向你确认一下问题。
1. 在错误信息出现之前,你是否做过一些针对数据库或者程序的更改?
2. 你是否可以打开新的Access 空白数据库?会出现同样的问题么?如果是,那么,你可能需要更改安全设置,文件,访问选项,客户端设置,高级 {加密方法} = 使用旧版加密
3. 如果你使用的是数字签名,那么你必须信任该发布者,文件,访问选项,信任中心,信任中心设置,受信任的发布者或信任该文档。
Best Regards,
Wendy
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com. -
你好,谢谢您的回复。
是这样的,这个问题仅在某个装有Xp系统的电脑上出现过,数据库都是一样的,所以很奇怪。
再就是,无论我是使用加密的Access,还是创建加密的数据库,在那个系统下均是一样的提示错误。
以下为我创建数据库所调用的代码,是用代码创建数据库的。连接字符串里设置了密码,但好像没法设置什么“使用旧版加密”。请看:
public class AccessDataBase:Database { string strConnectionString; public AccessDataBase(string DataBaseName) { strConnectionString = "Provider=Microsoft.Ace.OleDB.12.0;Data Source=" + DataBaseName +";Jet OLEDB:Database Password=Chen!(Jin&@Wei*&"; Conn = new OleDbConnection(strConnectionString); Cmd = new OleDbCommand(); this.DataBaseName = DataBaseName; CreateDatabase();
} private bool CreateDatabase() { bool blnOk=false; Catalog cat = new Catalog(); try { cat.Create(strConnectionString); SqlFileName = "CreateAccessDb.sql"; blnOk = true; } catch (Exception ex) { blnOk = false; throw new EvaluateException(ex.Message); } return blnOk; }
陈锦巍
-
你好,
由于没有XP的环境,我简单测试了你的代码,但并没有重现你的问题。从代码而言,并不会导致那个错误。你是否有按照提示信息去重新安装Microsoft Access. 针对这个问题,以前是否工作?如果工作的话,在问题出现之前,是否有做一下系统上的操作或者是对Micrsoft Acees做某些修改?
Best Regards,
Wendy
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- 已编辑 Wendy ZangMicrosoft contingent staff 2019年2月21日 2:49
-
你好,
你可以在Visual Studio上报这个问题。
Visual Studio> Help> Send Feedback> Report a Problem.
Best Regards,
Wendy
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- 已建议为答案 Wendy ZangMicrosoft contingent staff 2019年2月27日 6:28