文章摘要:加密的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();