加密的sqlite数据库怎么打开 sqlite数据库打开有密码

主机教程 建站分享 2年前 (2022-11-18) 201次浏览

文章摘要:加密的sqlite数据库怎么打开 sqlite数据库打开有密码

打开加密sqlite数据库的方法有以下两种 1.SQLiteConnection方法 SQLiteConnec […]

打开加密sqlite数据库的方法有以下两种

1.SQLiteConnection方法

SQLiteConnection cnn = new SQLiteConnection(“Data Source=c:\test2.db“);

cnn.SetPassword(“password“);

cnn.Open();

2.SQLiteConnectionStringBuilder方法

SQLiteConnectionStringBuilder builder = new SQLiteConnectionStringBuilder();

builder.DataSource = @”c: est.db“;

builder.Password = @”password“;

SQLiteConnection cnn = new SQLiteConnection(builder.ConnectionString);

cnn .Open();


声明:
若非注明,本站文章源于互联网收集整理和网友分享发布,如有侵权,请联系站长处理。
文章名称:加密的sqlite数据库怎么打开 sqlite数据库打开有密码
文章链接:http://www.7966.org/post/14151.html
转载请注明出处

喜欢 (0)