Please find the below function.it works fine for the first time. I mean , when i add a text it works for the first time , then when i try to add a new text again , it give me like "DB is locked". I am not sure how it works for the first not again? Please let me know what is the problem in my code. //================================================================== - ( BOOL ) addNewSimpleTemplates:(NSString*)dbPath:(NSString*)title{ //================================================================== BOOL returnVal = NO; NSString *maxValuePosition; if (sqlite3_open([dbPath UTF8String], &database) == SQLITE_OK) { NSString *selectSQL = [NSString stringWithFormat:@"select MAX(pr.position) FROM phrase_reference pr inner join storyboard_main_categories smc on smc.id = pr.main_category_id where smc.category_name = %@", @"'Simple Templates'"]; const char *sql = [selectSQL UTF8String]; sqlite3_stmt *selectStmt; if(sqlite
Cisco Certified Network Associate Exam,640-802 CCNA All Answers ~100/100. Daily update