NSUserDomainMask, YES); NSString *documentDir = [documentsPaths objectAtIndex:0]; databasePath = [documentDir stringByAppendingPathComponent:databaseName]; [self checkAndCreateDatabase]; if(sqlite3_open([databasePath UTF8String],&database) == SQLITE_OK) { NSLog(@"Database opened."); } } In open database method , change the database name(replace by your database name that you have created). A sample project file will be attached. Hope this will help. Tags: