Error "Database is Locked"

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

  1. rupesh.swami macrumors newbie

    Joined:
    Mar 9, 2009
    #1
    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

    Joined:
    Apr 24, 2007
    Location:
    San Francisco Bay Area
    #2
    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