Sqlite connection problem

Bob Sneidar bobs at twft.com
Mon Jan 17 12:21:10 EST 2011


I think you only need read permissions to open it. 

Bob


On Jan 15, 2011, at 3:10 AM, Klaus on-rev wrote:

> Buongiorno Alessandro,
> 
>> I have serius connection problem with my database sqlite.
>> 
>> my code is this:
>> 
>> on mouseUp
>> put tAppPath() & "GestPres.db" into tDB
>> put revOpenDatabase("sqlite",tDB,,,,,) into mydb
>> revCloseDatabase mydb
>> end mouseUp
>> 
>> function tAppPath
>> put effective filename of this stack into tFilename
>> set itemdel to "/"
>> if the platform = "MacOS" AND the environment <> "development" then
>> ##!!
>>    delete item -4 to -1 of tFileName
>>   ## MacApp.app/Contents/MacOS/Standalonestack
>> else
>>   delete item 1 of tFileName
>> end if
>>  return tFilename & "/"
>> end tAppPath
>> 
>> this is the error:
>> Database error:Unable to open the database file
>> I have created the db with Sqlite Manger . I open the db with the Sqlite Manager.
> 
> Does the current user of your standalone have ADMIN rights?
> Only users with ADMIN privileges are allowed to WRITE in the application folder!
> 
>> thanks
>> 
>> 
>> Cordiali Saluti
>> Alessandro Pisoni
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> http://www.major-k.de
> klaus at major.on-rev.com
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list