SQLite Forum

Get SQLITE_READONLY when using UPDATE command
Login
I forgot to show you how I declared my database objects.
sqlite3* ptrMain_Db = nullptr;
char* sqlite3_temp_directory;

Here are my changes.
sqlite3_temp_directory = "C:\Users\David"
Database file path = "file://Users/David/test.db" (m_Main_Db_File)

open function is now.
result = sqlite3_open_v2(m_Main_Db_File, &ptrMain_Db, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_URI, NULL);

and now I get a result of 1.