try
{
SQLiteConnection cn = new SQLiteConnection("Data Source=F:\\ddddd.sqlite");
cn.Open();
SQLiteCommand cm = new SQLiteCommand(String.Format("SELECT load_extension('{0}');", "spatialite.dll"), cn);
cm.ExecuteNonQuery();
//if ((Int32)cm.ExecuteScalar() != 0)
// throw new Exception();
//return cn;
}
catch (Exception e)
{
string str = e.Message;
//return null;
}
为什么连接不上。这是捕捉到得错误:SQL logic error or missing database: file is encrypted or is not a database。
跪求解决,急
"Data Source=D://test.db;Pooling=true;FailIfMissing=false")
)
{
cn.Open();
}
后缀名是db
pc和移动设备都需要使用,暂时只需要在pc上。 那是怎么写哦,我创建一个空的.sqlite数据库可以connection, 但是添加了blob字段后(图形数据) 就connection不上了。 我用的是 “spatialite-gui.exe”工具