SQLite Forum

sqlite3_prepare_v2 does not seem to work.
sqlite3_prepare* calls return an error code telling you what is wrong.  More detail is available if you ask for it.

You can print out the error message after the function returns an error indication by querying the connection and printing the result:

printf("%s: %s\n", sqlite3_errstr(sqlite3_extended_errcode(db)), sqlite3_errmsg(db));