8/10/2011 11:30:20 PM
Title:
Error #3109: Operation is not permitted when the SQLStatement.sqlConnection property is not set.
Hi,
I am developing the air application in which i want to access the data from the remote database and store it into local database of the application.I am getting the Error #3109: Operation is not permitted when the SQLStatement.connection property is not set. anybody know what is this.i am new to air.
How can i do that please help i don't have any idea about it.
Thank you
Shawn
Points: 680
Posts:0
8/21/2011 8:54:35 AM
the error is caused when sqlConnection property is not set to a working sql Connection. See the code below to create a SQlite connection in adobe AIR appliction using actionscript 3.
var database_file:File = File.applicationStorageDirectory.resolvePath("myDb.db");
var myConn:SQLConnection = new SQLConnection();
myConn.open(database_file);
var SQLstat:SQLStatement = new SQLStatement();
SQLstat.sqlConnection = myConn;
8/21/2011 8:59:06 AM
your SQLstat.sqlConnection object is neither not set or is null means the db file does not exist