aman deep

aman deep

  • NA
  • 57
  • 19.5k

SqLite DataBase Locked Exception

Jul 5 2017 10:13 AM
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)