SQLError: 'Error #3115: SQL Error.', details:'no such table: 'contact'', operation:'execute', detail

hi
just create database with SQLite Database Browser 2.0 b1 after creating the data base when i tried connect it in flash cs4-with air 1.1 its showing me error
SQLError: 'Error #3115: SQL Error.', details:'no such table: 'contact'', operation:'execute', detailID:'2013' i tried to found every where but did not get the solution of this
my code is here
import flash.filesystem.File;
import flash.data.*;
import flash.data.SQLConnection;
import flash.data.SQLStatement;
import flash.data.SQLConnection;
var dbFile:File=File.applicationStorageDirectory.resol  vePath("mydb.db");
var sqlConn:SQLConnection = new SQLConnection();
var sqlState:SQLStatement = new SQLStatement();
sqlConn.open(dbFile);
sqlState.sqlConnection = sqlConn;
trace(sqlConn.connected+"current status "); // its show "true" here
sqlState.text = "SELECT name FROM contact";
sqlState.execute();
var resultArray:Array = sqlState.getResult().data;
thanks in advance

Hi,
I'm creating my Adobe Air App using Flash CS5 Professional and facing exactly the same error.
SQLError: 'Error #3115: SQL Error.', details:'no such table: 'categories'', operation:'execute', detailID:'2013'
My SQLite Db has been created using Firefox extension - SQLite Manager. The db file is placed into the same folder as the .fla and .swf files. The db has three tables namely: categories, period and activity. I don't understand why I'm getting this error. I have even tried copy pasting other source code from AS 3.0 reference guide but same error every time.
The code below is a modified version of example code in AS 3.0 reference documentation. Can you suggest how the above error can be fixed?
/you can also reply to me directly at [email protected]
/regards
import flash.data.SQLConnection;
import flash.data.SQLResult;
import flash.data.SQLStatement;
import flash.display.Sprite;
import flash.events.SQLErrorEvent;
import flash.events.SQLEvent;
import flash.filesystem.File;
var conn:SQLConnection;
var insertCategory:SQLStatement;
var dbFile:File;
databaseConnect();
function databaseConnect():void
// define where to find the database file
var appStorage:File = File.applicationStorageDirectory;
dbFile = appStorage.resolvePath("MyBudgetCalc.db");
// open the database connection
conn = new SQLConnection();
conn.addEventListener(SQLErrorEvent.ERROR, errorHandler);
conn.addEventListener(SQLEvent.OPEN, openHandler);
trace("dbFile.exists:"+ dbFile.exists);
conn.openAsync(dbFile);
// Called when the database is connected
function openHandler(event:SQLEvent):void
conn.removeEventListener(SQLEvent.OPEN, openHandler);
// start a transaction
//Object(this).inputfield.text = "openHandler called.. ";
conn.addEventListener(SQLEvent.BEGIN, beginHandler);
conn.begin();
trace("exiting openHandler..");
// Called when the transaction begins
function beginHandler(event:SQLEvent):void
conn.removeEventListener(SQLEvent.BEGIN, beginHandler);
//trace("beginHandler - SQLEvent message: "+SQLEvent.message);
Object(this).inputfield.text = "beginHandler called.. ";
insertCategory = new SQLStatement();
insertCategory.sqlConnection = conn;
insertCategory.text = "INSERT INTO categories(id, name) VALUES (', Auto')";
insertCategory.execute();
insertCategory.addEventListener(SQLEvent.RESULT, insertCategoryHandler);
    insertCategory.addEventListener(SQLErrorEvent.ERROR, errorHandler);
trace("exiting beginHandler..");
// Called after the phone number record is inserted
function insertCategoryHandler(event:SQLEvent):void
insertCategory.removeEventListener(SQLEvent.RESULT, insertCategoryHandler);
insertCategory.removeEventListener(SQLErrorEvent.ERROR, errorHandler);
// No errors so far, so commit the transaction
conn.addEventListener(SQLEvent.COMMIT, commitHandler);
conn.commit();
trace("exiting insertCategoryHandler after conn.commit()..");
// Called after the transaction is committed
function commitHandler(event:SQLEvent):void
conn.removeEventListener(SQLEvent.COMMIT, commitHandler);
trace("exiting commitHandler(): Transaction complete..");
// Called whenever an error occurs
function errorHandler(event:SQLErrorEvent):void
trace("entering errorHandler()..");
// If a transaction is happening, roll it back
if (conn.inTransaction)
conn.addEventListener(SQLEvent.ROLLBACK, rollbackHandler);
conn.rollback();
trace(event.error.message);
trace(event.error.details);
trace("exiting errorHandler()..");
// Called when the transaction is rolled back
function rollbackHandler(event:SQLEvent):void
conn.removeEventListener(SQLEvent.ROLLBACK, rollbackHandler);

Similar Messages

  • Error #3115: SQL Error.', details:'no such table

    Hi,
    I'm creating my Adobe Air App using Flash CS5 Professional and facing exactly the following error.
    SQLError: 'Error #3115: SQL Error.', details:'no such table: 'categories'', operation:'execute', detailID:'2013'
    My SQLite Db has been created using Firefox extension - SQLite Manager. The db file is placed into the same folder as the .fla and .swf files. The db has three tables namely: categories, period and activity. I don't understand why I'm getting this error. I have even tried copy pasting other source code from AS 3.0 reference guide but same error every time.
    The code below is a modified version of example code in AS 3.0 reference documentation. Can you suggest how the above error can be fixed?
    /you can also reply to me directly at [email protected]
    /regards
    import flash.data.SQLConnection;
    import flash.data.SQLResult;
    import flash.data.SQLStatement;
    import flash.display.Sprite;
    import flash.events.SQLErrorEvent;
    import flash.events.SQLEvent;
    import flash.filesystem.File;
    var conn:SQLConnection;
    var insertCategory:SQLStatement;
    var dbFile:File;
    databaseConnect();
    function databaseConnect():void
    // define where to find the database file
    var appStorage:File = File.applicationStorageDirectory;
    dbFile = appStorage.resolvePath("MyBudgetCalc.db");
    // open the database connection
    conn = new SQLConnection();
    conn.addEventListener(SQLErrorEvent.ERROR, errorHandler);
    conn.addEventListener(SQLEvent.OPEN, openHandler);
    trace("dbFile.exists:"+ dbFile.exists);
    conn.openAsync(dbFile);
    // Called when the database is connected
    function openHandler(event:SQLEvent):void
    conn.removeEventListener(SQLEvent.OPEN, openHandler);
    // start a transaction
    //Object(this).inputfield.text = "openHandler called.. ";
    conn.addEventListener(SQLEvent.BEGIN, beginHandler);
    conn.begin();
    trace("exiting openHandler..");
    // Called when the transaction begins
    function beginHandler(event:SQLEvent):void
    conn.removeEventListener(SQLEvent.BEGIN, beginHandler);
    //trace("beginHandler - SQLEvent message: "+SQLEvent.message);
    Object(this).inputfield.text = "beginHandler called.. ";
    insertCategory = new SQLStatement();
    insertCategory.sqlConnection = conn;
    insertCategory.text = "INSERT INTO categories(id, name) VALUES (', Auto')";
    insertCategory.execute();
    insertCategory.addEventListener(SQLEvent.RESULT, insertCategoryHandler);
        insertCategory.addEventListener(SQLErrorEvent.ERROR, errorHandler);
    trace("exiting beginHandler..");
    // Called after the phone number record is inserted
    function insertCategoryHandler(event:SQLEvent):void
    insertCategory.removeEventListener(SQLEvent.RESULT, insertCategoryHandler);
    insertCategory.removeEventListener(SQLErrorEvent.ERROR, errorHandler);
    // No errors so far, so commit the transaction
    conn.addEventListener(SQLEvent.COMMIT, commitHandler);
    conn.commit();
    trace("exiting insertCategoryHandler after conn.commit()..");
    // Called after the transaction is committed
    function commitHandler(event:SQLEvent):void
    conn.removeEventListener(SQLEvent.COMMIT, commitHandler);
    trace("exiting commitHandler(): Transaction complete..");
    // Called whenever an error occurs
    function errorHandler(event:SQLErrorEvent):void
    trace("entering errorHandler()..");
    // If a transaction is happening, roll it back
    if (conn.inTransaction)
    conn.addEventListener(SQLEvent.ROLLBACK, rollbackHandler);
    conn.rollback();
    trace(event.error.message);
    trace(event.error.details);
    trace("exiting errorHandler()..");
    // Called when the transaction is rolled back
    function rollbackHandler(event:SQLEvent):void
    conn.removeEventListener(SQLEvent.ROLLBACK, rollbackHandler);

    Can you try creating the table using the AIR ActionScript APIs? It is possible the SQLLite Manager program that you are using is creating a database that isn't compatible with AIR.

  • FRM-40734:Internal Error:PL/SQL error occurred in Adjustment to invoice

    Hello All
    I have problem in AR Trasactions >> Transactions >>Query the invoice >>Actions >> Adjust FRM-40734:Internal Error:PL/SQL error occurred.
    EBS R 12.1.2
    SO. Enterprise Linux Enterprise Linux AS release 4 (October Update 7)
    Last night was generated forms with utility adadmin.
    I hope you can help me my enviorment is PROD
    Regards

    Last night was generated forms with utility adadmin.Was the form generated successfully?
    Have you applied any patches recently?
    If you have any other identical instance (same patchset), rename the form you have in production instance and replace it with the one from the other instance and see if you can reproduce the issue.
    Could you please confirm that you have no invalid objects in the database?
    I hope you can help me my enviorment is PRODPlease log a SR for production issues.
    You may also obtain the FRD file to get more details about the error.
    Steps To Take FRD Trace in 11.5.10 & R12 [ID 867943.1]
    R12: Forms Runtime Diagnostics (FRD), Tracing And Logging For Forms In Oracle Applications [ID 438652.1]
    Thanks,
    Hussein

  • FRM-40734: internal error: pl/sql error occurred

    I am getting this error [FRM-40734: internal error: pl/sql error occurred] while running a form (FMX) developed in Forms 6i. The form is running on machines having Win XP, Win 2k, and Win 98. But not running on the same operating system of the other machines.
    * I have completely uninstalled Developer 2000 both Forms 6i and Report 6i, and installed again.
    * The "Start in" Path and "Bin" path for the application is also correct.
    If anybody have idea kindly reply me quickly.
    [email protected]

    just some remote ideas :
    any PLLs involved ?
    any changes done on PLLs ?

  • DBcheck get failed from db13 with error BR0301E SQL error -1031

    Hi,
    I am executing DBcheck from db13 but it gets failed with error "BR0301E SQL error -1031 at location BrDbdiffRead-1, SQL statement".
    Here is the job logs:
    Job started
    Step 001 started (program RSDBAJOB, variant &0000000000424, user ID SVKM_BASIS2)
    Execute logical command BRCONNECT On host svkmeccdbci
    Parameters: -u / -jid CHECK20110930103211 -c -f check
    BR0801I BRCONNECT 7.00 (40)
    BR0477I Oracle pfile /oracle/SEP/102_64/dbs/initSEP.ora created from spfile /oracle/SEP/102_64/dbs/spfileSEP.ora
    BR0805I Start of BRCONNECT processing: cegwudvg.chk 2011-09-30 10.32.12
    BR0484I BRCONNECT log file: /oracle/SEP/sapcheck/cegwudvg.chk
    BR0280I BRCONNECT time stamp: 2011-09-30 10.32.12
    BR0813I Schema owners found in database SEP:
    DBSNMP, DIP, OPS$ORASEP, OPS$SAPSERVICESEP, OPS$SEPADM, ORACLE_OCM, OUTLN, SAPSR3*, SYS, SYSTEM,
    TSMSYS
    BR0280I BRCONNECT time stamp: 2011-09-30 10.32.20
    BR0814I Number of tables in schema of owner SAPSR3: 77207
    BR0836I Number of info cube tables found for owner SAPSR3: 49
    BR0814I Number of tables/partitions in schema of owner SYS: 625/189
    BR0814I Number of tables/partitions in schema of owner SYSTEM: 134/27
    BR0280I BRCONNECT time stamp: 2011-09-30 10.32.29
    BR0815I Number of indexes in schema of owner SAPSR3: 92099
    BR0815I Number of indexes/partitions in schema ofowner SYS: 678/199
    BR0815I Number of indexes/partitions in schema ofowner SYSTEM: 175/32
    BR0280I BRCONNECT time stamp: 2011-09-30 10.32.52
    BR0816I Number of segments in schema of owner DBSNMP: 25
    BR0816I Number of segments in schema of owner OPS$SEPADM: 1
    BR0816I Number of segments in schema of owner OUTLN: 9
    BR0816I Number of segments/LOBs in schema of owner SAPSR3: 174072/2383
    BR0816I Number of segments/LOBs in schema of owner SYS: 1838/87
    BR0816I Number of segments/LOBs in schema of owner SYSTEM: 353/22
    BR0816I Number of segments in schema of owner TSMSYS: 4
    BR0280I BRCONNECT time stamp: 2011-09-30 10.32.52
    BR0961I Number of conditions found in DBCHECKORA:118
    BR0280I BRCONNECT time stamp: 2011-09-30 10.32.52
    BR0301E SQL error -1031 at location BrDbdiffRead-1, SQL statement:
    'PREPARE stmt_5 STATEMENT FROM'
    'SELECT OBJNAME FROM "SAPSR3".DBDIFF WHERE DBSYS IN ('ORACLE', ' ') AND OBJTYPE = 'TABL' AND DIFFKIND IN ('02', '61', '99') ORDE
    ORA-01031: insufficient privileges
    BR0806I End of BRCONNECT processing: cegwudvg.chk2011-09-30 10.32.52
    BR0280I BRCONNECT time stamp: 2011-09-30 10.32.52
    BR0804I BRCONNECT terminated with errors
    External program terminated with exit code 3
    BRCONNECT returned error status E
    Job finished
    Please help.
    Thanks in advanced.
    Ocean

    Dear,
    Thanks for the reply.
    I have checked the note you have mention, but it show it is for SAP Release 6.20 or lower.
    we have ECC6 EHP4 release 700.
    So, please advise, should i go for that note and perform the required action ?
    Thanks.

  • Brconnect error BR0301E SQL error -1017

    Hi All,
    I am having errors issuing the brconnect commands. For example, brconnect  -f check is returning the error: *BR0301E SQL error -1017 at location db_connect-2, SQL statement:'CONNECT system/*******  .*
    I appreciate the fact that this may be a case of logon denied with the default user 'system' that brconnect uses. Issuing the same command as brconnect -u / -c -f check works fine and returns no error.
    How do I fix this error? The platform is Oracle 10.2.0.2.0, Windows 2003 Server, ECC 6.0 Kernel 700-Patch Level 146.
    Thanks in anticipation.
    Akin.
    Edited by: Akintunde Olorunsola on Oct 4, 2008 7:35 PM

    Hi,
    I believe you havent used the right way to change the password of the database connect user SAPSR3 ,probably you have just changed it from the database level using an "alter user ..."
    To allow continued logon of the R/3 work processes using the OPS$ mechanism, you must also change the password in the SAPUSER table. The simplest way of making a consistent change in the Oracle dictionary and in the
    SAPSR3 table is to use the " -f chpass" option of brconnect, for example:
    brconnect -f chpass -o sapsr3 -p <new_password>
    Hope this will solve your issue. Also check the following notes for reference:
    https://service.sap.com/sap/support/notes/562863
    https://service.sap.com/sap/support/notes/400241
    - Regards, Dibya

  • Update statistic error "BR0301E SQL error -904 at location ..."

    How do I fix this error in when running update statistics in DB13?
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    BR0886E Checking/collecting statistics failed for index SAPEWD./BIC/DZEW_C0055~01
    BR0280I BRCONNECT thread 2: time stamp: 2007-08-10 07.24.29
    BR0850I 6 of 87 objects processed - 0.051 of 0.745 units done
    BR0204I Percentage done: 6.90%, estimated end time: 7:24
    BR0001I ***_______________________________________________
    BR0280I BRCONNECT thread 2: time stamp: 2007-08-10 07.24.29
    BR0301E SQL error -904 at location stats_ind_collect-2
    ORA-00904: : invalid identifier
    ORA-06512: at "SYS.DBMS_STATS", line 8426
    ORA-06512: at "SYS.DBMS_STATS", line 8446
    ORA-06512: at line 1
    BR0886E Checking/collecting statistics failed for index SAPEWD./BIC/DZEW_C0056~0
    BR0280I BRCONNECT thread 2: time stamp: 2007-08-10 07.24.29
    BR0301E SQL error -904 at location stats_ind_collect-2
    ORA-00904: : invalid identifier
    ORA-06512: at "SYS.DBMS_STATS", line 8426
    ORA-06512: at "SYS.DBMS_STATS", line 8446
    ORA-06512: at line 1
    BR0886E Checking/collecting statistics failed for index SAPEWD./BIC/DZEW_C0056~01
    BR0280I BRCONNECT thread 2: time stamp: 2007-08-10 07.24.29
    BR0301E SQL error -904 at location stats_ind_collect-2
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Hi,
    with 9.2.0.7 there is a bug with dbms_stats you should then apply the note
    Note 898244 - ORA-904 with the DBMS_STATS package
    you have to install the patch 4627335 or patchset 9.2.0.8 and run @?/rdbms/admin/prvtstat.plb afterwhile
    Thanks

  • DB13 backup errors BR0301E SQL error -12547

    Hi All,
    We are scheduling Backup using DB13 but its throwing errors
    19.09.2014
    10:35:31
    BR0301E SQL error -12547 at location BrDbConnect-2, SQL statement:
    Please find the attached screenshot.
    Any help appreciated...
    Regards,
    Videesh

    Hi Videesh,
    Please follow SAP Note   505630 - Composite SAP Note ORA-12547
    Regards,
    Gaurav

  • BR error  BR0301W SQL error -980 at location BrDbfInfoGet-33  ,  ORA-00980

    Hi  <br/>
    i get this error by all kind backup and by checkdb, verify db<br/>
    <br/>
    Oracle 10.2.0.4, RHEL 4 32bit, <br/>
    Netweaver 2004s (7)<br/>
    <br/>
    I have one Oracle NW7  for Netweaver PI (NW7) and Portal  (EP7)<br/>
    <br/>
    <br/>
    <br/>
    BR0051I BRBACKUP 7.00 (18)<br/>
    BR0055I Start of database backup: bedxcwak.afd 2010-08-15 12.21.54<br/>
    BR0477I Oracle pfile /oracle/NW7/102_32/dbs/initNW7.ora created from spfile /oracle/NW7/102_32/dbs/spfileNW7.ora<br/>
    <br/>
    BR0925I Public synonym SAP_SDBAH created successfully for table SAPSR9DB.SDBAH<br/>
    BR0925I Public synonym SAP_SDBAD created successfully for table SAPSR9DB.SDBAD<br/>
    BR0925I Public synonym SAP_MLICHECK created successfully for table SAPSR9DB.MLICHECK<br/>
    BR0925I Public synonym SAP_SAPLIKEY created successfully for table SAPSR9DB.SAPLIKEY<br/>
    BR0280I BRBACKUP time stamp: 2010-08-15 12.21.55<br/>
    BR0301W SQL error -980 at location BrbDbLogOpen-5, SQL statement:<br/>
    'INSERT INTO SAP_SDBAH (BEG, FUNCT, SYSID, OBJ, RC, ENDE, ACTID, LINE) VALUES ('20100815122154', 'afd', 'NW7', ' ', '9999', ' ', 'bedxcwak', ' ')'<br/>
    ORA-00980: synonym translation is no longer valid<br/>
    BR0324W Insertion of database log header failed<br/>
    BR0280I BRBACKUP time stamp: 2010-08-15 12.21.56<br/>
    BR0301W SQL error -980 at location BrDbfInfoGet-32, SQL statement:<br/>
    'DELETE FROM SAP_SDBAH WHERE BEG > '10000000000000' AND BEG < '20090711000000''<br/>
    ORA-00980: synonym translation is no longer valid<br/>
    BR0280I BRBACKUP time stamp: 2010-08-15 12.21.56<br/>
    BR0301W SQL error -980 at location BrDbfInfoGet-33, SQL statement:<br/>
    'DELETE FROM SAP_SDBAD WHERE BEG > '10000000000000' AND BEG < '20090711000000''<br/>
    ORA-00980: synonym translation is no longer valid<br/>
    BR0280I BRBACKUP time stamp: 2010-08-15 12.21.56<br/>
    BR0301E SQL error -980 at location BrComprDurGet-1, SQL statement:<br/>
    'OPEN curs_6 CURSOR FOR'<br/>
    'SELECT FUNCT, POS, LINE FROM SAP_SDBAD WHERE BEG = '00000000000001' AND (FUNCT = 'CMP' OR FUNCT = 'CMP' OR FUNCT = 'DUS' OR FUNCT = 'DUM') ORDER BY FUNCT'<br/>
    ORA-00980: synonym translation is no longer valid<br/>
    BR0314E Collection of information on database files failed<br/>
    BR0280I BRBACKUP time stamp: 2010-08-15 12.21.56<br/>
    BR0301W SQL error -980 at location BrbDbLogOpen-5, SQL statement:<br/>
    'INSERT INTO SAP_SDBAH (BEG, FUNCT, SYSID, OBJ, RC, ENDE, ACTID, LINE) VALUES ('20100815122154', 'afd', 'NW7', ' ', '9999', ' ', 'bedxcwak', ' ')'
    ORA-00980: synonym translation is no longer valid<br/>
    BR0324W Insertion of database log header failed<br/>
    <br/>
    BR0056I End of database backup: bedxcwak.afd 2010-08-15 12.21.56<br/>
    BR0280I BRBACKUP time stamp: 2010-08-15 12.21.56<br/>
    BR0054I BRBACKUP terminated with errors<br/>
    <br/>
    ###############################################################################<br/>
    <br/>
    <br/>
    Please help<br/>
    <br/>
    BR <br/>
    Dawid<br/>

    after aply this Snote i get this by trying backup my DB <b/>
    Job log
    Job started
    Step 001 started (program RSDBAJOB, variant &0000000000029, user ID GLOMBDAW)
    Execute logical command BRBACKUP On host nw2004s
    Parameters:-u / -jid ALL__20100815175009 -c force -t online -m all -p initNW7.sap
    BR0051I BRBACKUP 7.00 (18)
    BR0055I Start of database backup: bedxdzeb.and 2010-08-15 17.50.13
    BR0280I BRBACKUP time stamp: 2010-08-15 17.50.13
    BR0301E SQL error -942 at location BrDbConnect-4,SQL statement:
    'SELECT NAME, NVL(RESETLOGS_CHANGE#, 0), NVL(TO_NUMBER(TO_CHAR(RESETLOGS_TIME, 'YYYYMMDDHH24MISS')), 0), NVL(TO_NUMBER(TO_CHAR(C
    ORA-00942: table or view does not exist
    BR0310E Connect to database instance NW7 failed
    BR0280I BRBACKUP time stamp: 2010-08-15 17.50.13
    BR0301E SQL error -942 at location BrDbConnect-4,SQL statement:
    'SELECT NAME, NVL(RESETLOGS_CHANGE#, 0), NVL(TO_NUMBER(TO_CHAR(RESETLOGS_TIME, 'YYYYMMDDHH24MISS')), 0), NVL(TO_NUMBER(TO_CHAR(C
    ORA-00942: table or view does not exist
    BR0310E Connect to database instance NW7 failed
    BR0056I End of database backup: bedxdzeb.and 2010-08-15 17.50.13
    BR0280I BRBACKUP time stamp: 2010-08-15 17.50.13
    BR0054I BRBACKUP terminated with errors
    External program terminated with exit code 3
    BRBACKUP returned error status E
    Job finished

  • Adobe Air for iOS - SQLError: 'Error #3115' no such table

    I am developing Adobe Air application for iOS with sqlite on it. When running on my local machine, it worked like charm (add, edit & delete). Unfortunately, when tried running on iPAD, it gives me the following error:
    SQLError: 'Error #3115', details:'no such table: 'tblEmploye'', operation:'execute', detailID:'2013'
    Here's my code when opening the sqlite database: ** data file is saved on the current application directory where all the files are stored:
            exampleDBFile = File.documentsDirectory.resolvePath("mydb.db");
            if (exampleDBFile==null || !exampleDBFile.exists) {
                MovieClip(root).mcSong.visible = false;
                MovieClip(root).mcAlert.visible = true;
                MovieClip(root).mcAlert.enabled = true;
                MovieClip(root).mcAlert.txtErrorMessage.text = "Database not found";
            exampleDB = new SQLConnection();
            exampleDB.addEventListener(SQLEvent.OPEN, onExampleDBOpened);
            exampleDB.addEventListener(SQLErrorEvent.ERROR, onExampleDBError);
            //exampleDB.openAsync(exampleDBFile);
            exampleDB.open(exampleDBFile);
    I also tried using the following but still no luck
    exampleDBFile = File.applicationDirectory.resolvePath("mydb.db");           
    when using this, i receive a different error : Error:Error #3104
    And heres the code for adding new entries
            sqlInsert = "insert into tblLyrics (empName, empDesc) values
                        ('"+ strReplace(txtSearchMe.text, "'", "") + "','"+ strReplace(txtContent.text,"'","") +"')";
            dbStatement.text = sqlInsert;       
            dbStatement.addEventListener(SQLEvent.RESULT, onDBStatementInsertResult);       
            dbStatement.execute();
    Hoping for your advice....

    Hi,
    I am sorry you are facing this issue. Is the code that you posted all that you are doing? It is missing a few things:
    1) You are not creating the dbFile and the table tblEmployee. Do they already exist on your desktop? On device, you would need to create them.
    2) dbStatement.SQLConnection property is not set anywhere.
    The following sample code is from http://help.adobe.com/en_US/air/reference/html/flash/data/SQLConnection.html. Could you try and see if it works for you?
    package
         import flash.data.SQLConnection;
         import flash.data.SQLResult;
         import flash.data.SQLStatement;
         import flash.display.Sprite;
         import flash.events.SQLErrorEvent;
         import flash.events.SQLEvent;
         import flash.filesystem.File;
         public class MultipleInsertTransactionExample extends Sprite
              private var conn:SQLConnection;
              private var insertEmployee:SQLStatement;
              private var insertPhoneNumber:SQLStatement;
              private var dbFile:File
              public function MultipleInsertTransactionExample():void
                   // define where to find the database file
                   //var appStorage:File = File.applicationDirectory;
              dbFile = new File(File.documentsDirectory.nativePath + File.separator + "ExampleDatabase.db");
                   // open the database connection
                   conn = new SQLConnection();
                   conn.addEventListener(SQLErrorEvent.ERROR, errorHandler);
                   conn.addEventListener(SQLEvent.OPEN, openHandler);
                   conn.openAsync(dbFile);
              // Called when the database is connected
              private function openHandler(event:SQLEvent):void
                   conn.removeEventListener(SQLEvent.OPEN, openHandler);
                   // start a transaction
                   conn.addEventListener(SQLEvent.BEGIN, beginHandler);
                   conn.begin();
              // Called when the transaction begins
              private function beginHandler(event:SQLEvent):void
                   conn.removeEventListener(SQLEvent.BEGIN, beginHandler);
                   // create and execute the first SQL statement:
                   // insert an employee record
                   var createEmployees:SQLStatement = new SQLStatement();
                   createEmployees.sqlConnection = conn;
                   createEmployees.text =
                        "CREATE TABLE IF NOT EXISTS employees(lastName, firstName, email, birthday) ";
                   createEmployees.execute();
                   insertEmployee = new SQLStatement();
                   insertEmployee.sqlConnection = conn;
                   insertEmployee.text =
                        "INSERT INTO employees (lastName, firstName, email, birthday) " +
                        "VALUES (:lastName, :firstName, :email, :birthday)";
                   insertEmployee.parameters[":lastName"] = "Smith";
                   insertEmployee.parameters[":firstName"] = "Bob";
                   insertEmployee.parameters[":email"] = "[email protected]";
                   insertEmployee.parameters[":birthday"] = new Date(1971, 8, 12);
                   insertEmployee.addEventListener(SQLEvent.RESULT, insertEmployeeHandler);
                   insertEmployee.addEventListener(SQLErrorEvent.ERROR, errorHandler);
                   insertEmployee.execute();
              // Called after the employee record is inserted
              private function insertEmployeeHandler(event:SQLEvent):void
                   insertEmployee.removeEventListener(SQLEvent.RESULT, insertEmployeeHandler);
                   insertEmployee.removeEventListener(SQLErrorEvent.ERROR, errorHandler);
                   // Get the employee id of the newly created employee row
                   var result:SQLResult = insertEmployee.getResult();
                   var employeeId:Number = result.lastInsertRowID;
                   // Add a phone number to the related phoneNumbers table
                   var createTab:SQLStatement = new SQLStatement();
                   createTab.sqlConnection = conn;
                   createTab.text =
                        "CREATE TABLE IF NOT EXISTS phoneNumbers(employeeId, type, number)";
                   createTab.execute();
                   insertPhoneNumber = new SQLStatement();
                   insertPhoneNumber.sqlConnection = conn;
                   insertPhoneNumber.text =
                        "INSERT INTO phoneNumbers (employeeId, type, number) " +
                        "VALUES (:employeeId, :type, :number)";
                   insertPhoneNumber.parameters[":employeeId"] = employeeId;
                   insertPhoneNumber.parameters[":type"] = "Home";
                   insertPhoneNumber.parameters[":number"] = "(555) 555-1234";
                   insertPhoneNumber.addEventListener(SQLEvent.RESULT, insertPhoneNumberHandler);
                   insertPhoneNumber.addEventListener(SQLErrorEvent.ERROR, errorHandler);
                   insertPhoneNumber.execute();
              // Called after the phone number record is inserted
              private function insertPhoneNumberHandler(event:SQLEvent):void
                   insertPhoneNumber.removeEventListener(SQLEvent.RESULT, insertPhoneNumberHandler);
                   insertPhoneNumber.removeEventListener(SQLErrorEvent.ERROR, errorHandler);
                   // No errors so far, so commit the transaction
                   conn.addEventListener(SQLEvent.COMMIT, commitHandler);
                   conn.commit();
              // Called after the transaction is committed
              private function commitHandler(event:SQLEvent):void
                   conn.removeEventListener(SQLEvent.COMMIT, commitHandler);
                   trace("Transaction complete");
              // Called whenever an error occurs
              private function errorHandler(event:SQLErrorEvent):void
                   // If a transaction is happening, roll it back
                   if (conn.inTransaction)
                        conn.addEventListener(SQLEvent.ROLLBACK, rollbackHandler);
                        conn.rollback();
                   trace(event.error.message);
                   trace(event.error.details);
              // Called when the transaction is rolled back
              private function rollbackHandler(event:SQLEvent):void
                   conn.removeEventListener(SQLEvent.ROLLBACK, rollbackHandler);
                   // add additional error handling, close the database, etc.
    Thanks,
    Sanika

  • Flash builder + sqlight error #3115

    Hi guys i'm making a mobile app with flash builder but i stumble upon an error. In short terms, you put a text in a text input, u click a button and it only lists the things from the database with that imputted text in it. Here are the codes:
    First the Homeview.mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark" title="Home"
      xmlns:dao="dao.*">
      <fx:Declarations>
      <dao:RoosterDAO id="srv"/>
      </fx:Declarations>
      <s:Label x="11" y="6" fontSize="36" text="Klas:"/>
      <s:TextInput id="Klas" x="91" y="6" width="262" height="30"/>
      <s:Button id="btn" x="361" y="0" height="40" label="Button" click="data=srv.findByKlas(Klas.text)"/>
      <s:List id="list" top="48" bottom="0" left="0" right="0"
      dataProvider="{data}">
      <s:itemRenderer>
      <fx:Component>
      <s:IconItemRenderer
      label="{data.Klas} - {data.Vak} - {data.Docent}"
      messageField="Positie"/>
      </fx:Component>
      </s:itemRenderer>
      </s:List>
    </s:View>
    and secondly the sql ".as file" :
    package dao
              import flash.data.SQLConnection;
              import flash.data.SQLStatement;
              import flash.filesystem.File;
              import flash.filesystem.FileMode;
              import flash.filesystem.FileStream;
              import mx.collections.ArrayCollection;
              public class RoosterDAO
                        public function getItem(id:int):Rooster
                                  var sql:String = "SELECT id, Klas, Vak, Docent, Lokaal, Positie, Type FROM Rooster WHERE id=?";
                                  var stmt:SQLStatement = new SQLStatement();
                                  stmt.sqlConnection = sqlConnection;
                                  stmt.text = sql;
                                  stmt.parameters[0] = id;
                                  stmt.execute();
                                  var result:Array = stmt.getResult().data;
                                  if (result && result.length == 1)
                                            return processRow(result[0]);
                                  else
                                            return null;
                        public function findByKlas(searchKlas:String):ArrayCollection
                                  var sql:String = "SELECT * FROM rooster WHERE Klas LIKE ?";
                                  var stmt:SQLStatement = new SQLStatement();
                                  stmt.sqlConnection = sqlConnection;
                                  stmt.text = sql;
                                  stmt.parameters[0] = "%" + searchKlas + "%";
                                  stmt.execute();
                                  var result:Array = stmt.getResult().data;
                                  if (result)
                                            var list:ArrayCollection = new ArrayCollection();
                                            for (var i:int=0; i<result.length; i++)
                                                      list.addItem(processRow(result[i]));
                                            return list;
                                  else
                                            return null;
                        protected function processRow(o:Object):Rooster
                                  var rooster:Rooster = new Rooster();
                                  rooster.id = o.id;
                                  rooster.Klas = o.Klas == null ? "" : o.Klas;
                                  rooster.Vak = o.Vak == null ? "" : o.Vak;
                                  rooster.Docent = o.Docent == null ? "" : o.Docent;
                                  rooster.Lokaal = o.Lokaal == null ? "" : o.Lokaal;
                                  rooster.Positie = o.Positie == null ? "" : o.Positie;
                                  rooster.loaded = true;
                                  return rooster;
                        public static var _sqlConnection:SQLConnection;
                        public function get sqlConnection():SQLConnection
                                  if (_sqlConnection) return _sqlConnection;
                                  var file:File = File.documentsDirectory.resolvePath("rooster.db");
                                  var fileExists:Boolean = file.exists;
                                  _sqlConnection = new SQLConnection();
                                  _sqlConnection.open(file);
                                  if (!fileExists)
                                            createDatabase();
                                            populateDatabase();
                                  return _sqlConnection;
                        protected function createDatabase():void
                                  var sql:String =
                                            "CREATE TABLE IF NOT EXISTS rooster ( "+
                                            "id INTEGER PRIMARY KEY AUTOINCREMENT, " +
                                            "Klas VARCHAR(50), " +
                                            "Vak VARCHAR(50), " +
                                            "Docent VARCHAR(50), " +
                                            "Lokaal VARCHAR(50), " +
                                            "Positie VARCHAR(50), " +
                                            "Type VARCHAR(50), ";
                                  var stmt:SQLStatement = new SQLStatement();
                                  stmt.sqlConnection = sqlConnection;
                                  stmt.text = sql;
                                  stmt.execute();
                        protected function populateDatabase():void
                                  var file:File = File.applicationDirectory.resolvePath("assets/rooster.xml");
                                  var stream:FileStream = new FileStream();
                                  stream.open(file, FileMode.READ);
                                  var xml:XML = XML(stream.readUTFBytes(stream.bytesAvailable));
                                  stream.close();
                                  var RoosterDAO:RoosterDAO = new RoosterDAO();
                                  for each (var emp:XML in xml.Rooster)
                                            var rooster:Rooster = new Rooster();
                                            rooster.id = emp.id;
                                            rooster.Klas = emp.Klas;
                                            rooster.Vak = emp.Vak;
                                            rooster.Docent = emp.Docent;
                                            rooster.Lokaal = emp.Lokaal;
                                            rooster.Positie = emp.Positie;
                                            rooster.Type = emp.Type;
    The error is at the findByKlas function and it goes like this:
    SQLError: 'Error #3115: SQL Error.', details:'no such table: 'rooster'', operation:'execute', detailID:'2013'
              at flash.data::SQLStatement/internalExecute()
              at flash.data::SQLStatement/execute()
              at dao::RoosterDAO/findByKlas()[C:\Users\Thomas\Adobe Flash Builder 4.6\ARHC test\src\dao\RoosterDAO.as:36]
              at views::MainHomeView/__btn_click()[C:\Users\Thomas\Adobe Flash Builder 4.6\ARHC test\src\views\MainHomeView.mxml:11]
    If you need any more information just ask me (:

    well it's a little hard to tell but this seems wrong to me
    protected function createDatabase():void
                                  var sql:String =
                                            CREATE TABLE IF NOT EXISTS rooster ( +
                                            id INTEGER PRIMARY KEY AUTOINCREMENT, +
                                            Klas VARCHAR(50), +
                                            Vak VARCHAR(50), +
                                            Docent VARCHAR(50), +
                                            Lokaal VARCHAR(50), +
                                            Positie VARCHAR(50), +
                                            Type VARCHAR(50), ;
                                  var stmt:SQLStatement = new SQLStatement();
                                  stmt.sqlConnection = sqlConnection;
                                  stmt.text = sql;
                                  stmt.execute();
    the blue bracket isn't closed

  • SQL error #3115 during Create table

    As a new user to this AIR problem, I am using "adl
    application.xml" to start up testing.
    I am using disk file based table. Disk file is wiped out each
    time before startup this application.
    Following sql failed all the time. Is there anything wrong
    with adl or any cached data need to empty out prior to create
    table?
    createTables : function(callback) {
    // create tables
    var stmt = new air.SQLStatement();
    stmt.sqlConnection = this.sqlConnection;
    stmt.text = "CREATE TABLE IF NOT EXISTS Contacts ( " +
    "id INTEGER PRIMARY KEY AUTOINCREMENT, " +
    "manufacturer VARCHAR(32), " +
    "model VARCHAR(32), " +
    "sn VARCHAR(32), " +
    "orderNumber VARCHAR(64), " +
    "type VARCHAR(256), " +
    "shipping VARCHAR(32), " +
    "check VARCHAR(32), " +
    "notes VARCHAR, " +
    "photo BLOB)";
    var success = function(event) {
    if (callback) callback(true);
    var failure = function(event) {
    runtime.trace("CREATE TABLE error:", event.error);
    runtime.trace("event.error.code:", event.error.code);
    runtime.trace("event.error.message:", event.error.message);
    if (callback) callback(false, event.text);
    stmt.addEventListener(air.SQLErrorEvent.ERROR, failure);
    stmt.addEventListener(air.SQLEvent.RESULT, success);
    stmt.execute();
    D810# adl application.xml
    Loaded
    Loaded
    Loaded
    Loaded
    Loaded
    Loaded
    Loaded
    creating database D:\blackbooksafe\data\database.db
    CREATE TABLE error: SQLError: 'Error #3115: SQL Error.',
    details:'near 'VARCHAR'
    : syntax error', operation:'execute', detailID:'2003'
    event.error.code: undefined
    event.error.message: Error #3115: SQL Error.
    Cannot create database: Error #3115: SQL Error.
    D810#

    Hi Dimitri.
    If you click on the tables node before you right click, does this work for you? Apple's focus is different to windows and you need to click on the component you wish to get a menu on on OSX
    Let me know.
    B

  • SQL connection Error 3115

    Out of the blue my app stopped fetching the info from my ZIP file... it use to work, but since i changed the content of the zip file (added some rows) it doesn't work anymore.
    PPl are talking about the a problem in AIRSQL that new antry sometimes don't get recongized and create column type problems etc...
    Now i am very puzzle with all of this because i don't know where i can find a SQLmanager to play with the D created by my app, i don't even understand how the damn thing understand that [col4 = email] in my excel...is there hidden code in the excel?? is it the MXML code that just fetch col by number?? is it the database that has the col specs??
    so i have a lot of holes in my understanding of that task executed by my app (the employee directory) can anybody  point me on a tut or help file that would clear that out??

    maybe just pointing me out the way of debugging errors like that!
    [DEBUG] InsertEmployeeDataCommand : beginning transaction. [DEBUG] InsertEmployeeDataCommand : An error occurred executing the SQL : 3115 : Error #3115: SQL Error. - INSERT INTO employee ('id', 'firstName', 'lastName', 'displayName', 'title', 'department', 'managerId', 'email', 'email2', 'phone', 'phoneExtension', 'fax', 'cellPhone', 'deskLocation', 'location', 'city', 'state', 'postalCode', 'countryCode')  VALUES (:id, :firstName, :lastName, :displayName, :title, :department, :managerId, :email, :email2,  :phone, :phoneExtension, :fax, :cellPhone, :deskLocation, :location, :city, :state, :postalCode, :countryCode); [ERROR] InsertEmployeeDataCommand : : An error occurred executing the SQL : 3115 : Error #3115: SQL Error. - INSERT INTO employee ('id', 'firstName', 'lastName', 'displayName', 'title', 'department', 'managerId', 'email', 'email2', 'phone', 'phoneExtension', 'fax', 'cellPhone', 'deskLocation', 'location', 'city', 'state', 'postalCode', 'countryCode')  VALUES (:id, :firstName, :lastName, :displayName, :title, :department, :managerId, :email, :email2,  :phone, :phoneExtension, :fax, :cellPhone, :deskLocation, :location, :city, :state, :postalCode, :countryCode); [ERROR] SynchronizeDatabaseCommand : onSyncEmployeeError: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="An error occurred executing the SQL : 3115 : Error #3115: SQL Error. - INSERT INTO employee ('id', 'firstName', 'lastName', 'displayName', 'title', 'department', 'managerId', 'email', 'email2', 'phone', 'phoneExtension', 'fax', 'cellPhone', 'deskLocation', 'location', 'city', 'state', 'postalCode', 'countryCode')  VALUES (:id, :firstName, :lastName, :displayName, :title, :department, :managerId, :email, :email2,  :phone, :phoneExtension, :fax, :cellPhone, :deskLocation, :location, :city, :state, :postalCode, :countryCode);" errorID=0] [ERROR] SynchronizeDatabaseCommand : : An error occurred executing the SQL : 3115 : Error #3115: SQL Error. - INSERT INTO employee ('id', 'firstName', 'lastName', 'displayName', 'title', 'department', 'managerId', 'email', 'email2', 'phone', 'phoneExtension', 'fax', 'cellPhone', 'deskLocation', 'location', 'city', 'state', 'postalCode', 'countryCode')  VALUES (:id, :firstName, :lastName, :displayName, :title, :department, :managerId, :email, :email2,  :phone, :phoneExtension, :fax, :cellPhone, :deskLocation, :location, :city, :state, :postalCode, :countryCode); [DEBUG] DataSynchronizationManager : onSyncError - An error occurred executing the SQL : 3115 : Error #3115: SQL Error. - INSERT INTO employee ('id', 'firstName', 'lastName', 'displayName', 'title', 'department', 'managerId', 'email', 'email2', 'phone', 'phoneExtension', 'fax', 'cellPhone', 'deskLocation', 'location', 'city', 'state', 'postalCode', 'countryCode')  VALUES (:id, :firstName, :lastName, :displayName, :title, :department, :managerId, :email, :email2,  :phone, :phoneExtension, :fax, :cellPhone, :deskLocation, :location, :city, :state, :postalCode, :countryCode); 
    So sth is causing the insertion of new data or table in my SQL to bug?
    Now like i mention in the first post, there is many little thing i don't know how to deal with, but if i were to just debug this bug what would be the step from here.

  • SQLite error #3115 in Flex/Air App: with (')

    Hi,
    I am trying to do a simple SQLite query from inside and Air application:
    var sqls:SQLStatement = new SQLStatement();
    sqls.sqlConnection = sqlc;
    sqls.text = "UPDATE videos SET thumb = 'ram's' where id = 2";
    sqls.execute();
    I need to add ' same as ram's
    Error:
    SQLError: 'Error #3115: SQL Error.', details:'near 's': syntax error', operation:'execute', detailID:'2003'
    I'm using "addslashes()" but not working
    Not sure why it does not work. Please help me.
    Thanks,
    Dhaval

    The syntax for the update is incorrect, you can use the update statement as
    sqls.text = "UPDATE videos SET thumb = 'ram' + '''s' where id = 2";
    Let me know if this worked.

  • SQL Error: ORA-12899: value too large for column

    Hi,
    I'm trying to understand the above error. It occurs when we are migrating data from one oracle database to another:
    Error report:
    SQL Error: ORA-12899: value too large for column "USER_XYZ"."TAB_XYZ"."COL_XYZ" (actual: 10, maximum: 8)
    12899. 00000 - "value too large for column %s (actual: %s, maximum: %s)"
    *Cause:    An attempt was made to insert or update a column with a value
    which is too wide for the width of the destination column.
    The name of the column is given, along with the actual width
    of the value, and the maximum allowed width of the column.
    Note that widths are reported in characters if character length
    semantics are in effect for the column, otherwise widths are
    reported in bytes.
    *Action:   Examine the SQL statement for correctness.  Check source
    and destination column data types.
    Either make the destination column wider, or use a subset
    of the source column (i.e. use substring).
    The source database runs - Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    The target database runs - Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    The source and target table are identical and the column definitions are exactly the same. The column we get the error on is of CHAR(8). To migrate the data we use either a dblink or oracle datapump, both result in the same error. The data in the column is a fixed length string of 8 characters.
    To resolve the error the column "COL_XYZ" gets widened by:
    alter table TAB_XYZ modify (COL_XYZ varchar2(10));
    -alter table TAB_XYZ succeeded.
    We now move the data from the source into the target table without problem and then run:
    select max(length(COL_XYZ)) from TAB_XYZ;
    -8
    So the maximal string length for this column is 8 characters. To reduce the column width back to its original 8, we then run:
    alter table TAB_XYZ modify (COL_XYZ varchar2(8));
    -Error report:
    SQL Error: ORA-01441: cannot decrease column length because some value is too big
    01441. 00000 - "cannot decrease column length because some value is too big"
    *Cause:   
    *Action:
    So we leave the column width at 10, but the curious thing is - once we have the data in the target table, we can then truncate the same table at source (ie. get rid of all the data) and move the data back in the original table (with COL_XYZ set at CHAR(8)) - without any issue.
    My guess the error has something to do with the storage on the target database, but I would like to understand why. If anybody has an idea or suggestion what to look for - much appreciated.
    Cheers.

    843217 wrote:
    Note that widths are reported in characters if character length
    semantics are in effect for the column, otherwise widths are
    reported in bytes.You are looking at character lengths vs byte lengths.
    The data in the column is a fixed length string of 8 characters.
    select max(length(COL_XYZ)) from TAB_XYZ;
    -8
    So the maximal string length for this column is 8 characters. To reduce the column width back to its original 8, we then run:
    alter table TAB_XYZ modify (COL_XYZ varchar2(8));varchar2(8 byte) or varchar2(8 char)?
    Use SQL Reference for datatype specification, length function, etc.
    For more info, reference {forum:id=50} forum on the topic. And of course, the Globalization support guide.

Maybe you are looking for

  • Payment against sales order and subsequent release

    Hi Team, The client wants to save the sales order only after getting the payment.can any body tell me how to configure or to control the scenario. Example:on receipt of payment either through PDC or cash the client wants to generate the sales order .

  • Can't Get Music to Play in LR2 Slideshow

    I cannot get LR2 to play songs from my playlist in iTunes on my Mac.  I've read through the threads on this forum, refreshed the list on LR's slideshow section, tried repairing permissions, created new playlists in iTunes-- still no success.  Does it

  • Missing keyboard shortcuts on Mac Air 2013

    I just got a used clean Mac Book Air 2013. None of the keyboard shortcuts are working. I've gone to system preferences to restore the default, but that doesn't work. Any ideas? Thanks!

  • 3D Topicscape beta program just ended

    After its beta period (special thanks to all the Beta Users who signed up through the Java tech forums), applications to join the beta program are now closed. Any active Topicscape Beta User who has not received their free licence, please contact bet

  • Ipad2: restos de imagen/app anterior

    Cuando dejo una app o foto durante más de 2-3 minutos, esta se queda "pegada" o "colgada" en la pantalla de mi ipad, parecido al efecto de las antiguas plasma, que dejaban la marca de agua de las cadenas de televisión. En la siguiente foto les señalo