如何在C#中删除Access数据库密码? [英] How Do I Remove Access Database Password In C#?
本文介绍了如何在C#中删除Access数据库密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好所有
i构建一个程序,在访问db中替换两条记录
frist数据库有密码。
如何删除访问数据库密码在c#???
hello all
i build a program which replace two record in access db
frist database has password.
how do i remove access database password in c#???
推荐答案
如果您知道现有密码,那很简单:
打开与数据库的连接。
执行ALTER语句,将其密码设置为NULL:
Provided you know the existing password, it's simple:
Open a connection to the database.
Execute an ALTER statement setting it's password to NULL:
ALTER DATABASE PASSWORD [Your Password] NULL;
关闭连接
Close the connection
这篇关于如何在C#中删除Access数据库密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文