SQLite Forum

Finding database file
Login
The path, c:/My1stdb.db, is clearly to be effective on a Windows machine. On modern versions of Windows, the system drive root directory is write-protected for ordinary (non-administrative) user accounts.  If the OP was doing some error checking, such problems would have already become apparent. Perhaps, from this experience, the OP will learn that error checking is a self-favor more than an extraneous bother.