如何在vb.net中密码访问数据库 [英] how to password an access database in vb.net
本文介绍了如何在vb.net中密码访问数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
下面的代码很好地连接到没有密码的数据库,但我想密封数据库以进行连接。请帮助我帮助我
The code below connect well to the database without password but i want to password the database for the connection.pls help me out
Dim strConnection As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data source=C:\Users\BELLCONSULT\Documents\COUNCILS.mdb"
Dim cn As OleDb.OleDbConnection = New OleDb.OleDbConnection(strConnection)
cn.Open()
推荐答案
按照以下链接
Microsoft Access教程:如何密码保护您的数据库 [ ^ ]
如何使用带密码保护的Access数据库的c#? [ ^ ]
C#创建一个访问数据库....带密码保护 [ ^ ]
Follow below links
Microsoft Access Tutorial: How to Password Protect Your Database[^]
How to use c# with password protected Access Database?[^]
C# to create an access database....with password protection[^]
请参阅以下链接:
访问连接字符串示例 [ ^ ]
受密码保护的MS Access连接字符串 [< a href =https:/ /help.brinkster.com/KB/a156/password-protected-ms-access-connection-string.aspx\"target =_ blanktitle =新窗口> ^ ]
问候......:笑:
Refer to these links:
Access Connection String Samples[^]
Password Protected MS Access Connection String[^]
Regards..:laugh:
使用此:
Use this:
Provider=Microsoft.Jet.OLEDB.4.0;Password=secret;User ID=Admin;Data Source=D:\My Documents\db2.mdb
这篇关于如何在vb.net中密码访问数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文