4
Answers

SqLite DataBase Locked Exception

Ask a question
aman deep

aman deep

7y
239
1
My Code Is following i wants to retun a SqLiteDataReader From My Function But I got DataBase Lockked Exception 
Following is My Code
public static SQLiteDataReader getAction(string Qry)
{
SQLiteConnection m_dbConnection;
SQLiteDataReader reader = null;
m_dbConnection = new SQLiteConnection(Connn);
m_dbConnection.Open();
SQLiteCommand command = new SQLiteCommand(Qry, m_dbConnection);
reader = command.ExecuteReader(System.Data.CommandBehavior.CloseConnection);
return reader;
}
..
Please Help ... 

Answers (4)