Error "Database is Locked"

Discussion in 'iOS Programming' started by rupesh.swami, Mar 16, 2009.

  1. rupesh.swami macrumors newbie

    Mar 9, 2009
    hi all,
    i am new to iPhone Programming
    when i insert or update the record in table, then most of time error "Database is locked" occured. How can i resolve this error?
  2. yayaba macrumors 6502

    Apr 24, 2007
    San Francisco Bay Area
    One thing to try is to copy the sqlite db file to the Documents directory of your app. That should remove the read-only access I think.

Share This Page