Pavel Ivanov-2 wrote:
> 
>> // first we need to set the file class for our database (ICM.db).
>>    var db:File = new File ("C:/ICM.db");
> 
> Depending on your Windows version only users with elevated privileges
> could be able to write into root C:\ directory. Adobe Air apparently
> won't ask you to elevate its privileges just to execute this code. Try
> to put your database into some other directory.
> 
> Pavel
> 
> 
> On Wed, Nov 16, 2011 at 1:56 AM, BertD <bert.de.spiegela...@telenet.be>
> wrote:
> 

Thanks for your reply Pavel, you scored the right anwser !
I'm running on a windows 7 64bit system and having my database as follows
     var db:File = new File ("C:/ICM.db")
gave me privilege problems writing to the db.

I solved this by working as follows : 
var db:File = File.userDirectory.resolvePath("ICM.db");
(this resolves into "C:\Users\*username*\" or "C:\Documents and
settings*username*\")

"UPDATE" & "INSERT" work fine now, just have to solve the puzzle on how i
can allow the user to define the location of the database.. 

Thanks to all who have put time into thinking along with me !
Regards,
Bert

-- 
View this message in context: 
http://old.nabble.com/Adobe-Air---Using-SQLite-db%2C-cannot-%22UPDATE%22-nor-%22INSERT%22-tp32851221p32856583.html
Sent from the SQLite mailing list archive at Nabble.com.

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to