110,538
社区成员
发帖
与我相关
我的任务
分享
private static void ExecuteNonQuery(string sql)
{
using (var connection = new SQLiteConnection(connectionStr))
{
connection.Open();
using (SQLiteCommand command = new SQLiteCommand(sql, connection))
{
command.ExecuteNonQuery();
}
}
}
System.Data.SQLite.SQLiteException (0x80004005): database is locked
database is locked
在 System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
在 System.Data.SQLite.SQLiteDataReader.NextResult()
在 System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
在 System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
在 System.Data.SQLite.SQLiteCommand.ExecuteNonQuery(CommandBehavior behavior)
在 System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
在 YSPRtxMsgMonitor.Helpers.DbHelper.ExecuteNonQuery(String sql)
在 YSPRtxMsgMonitor.Helpers.DbHelper.LogText(String text)