Results 1 to 7 of 7

Thread: What does this mean???

  1. #1
    kayoca
    Guest

    What does this mean???

    What does this message mean?

    Microsoft JET Database Engine error '80004005'

    Operation must use an updateable query.
    I am using this SQL statement.
    Code:
    INSERT INTO MailingList (Email) VALUES ('[email protected]');
    Can someone maybe explain this message??

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    You need to post more code than that.. but I would say your trying to use that SQL statement in a recordset. Just use the connection object's execute method to execute the insert.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  3. #3
    kayoca
    Guest
    Am sorry, I am using the Execute command for executing the SQL statement. But my problem is, its working fine
    on my local computer. But when i want to execute it on the server its giving me this error. Its running on Windows 2000 Server.
    Microsoft JET Database Engine error '80004005'

    Operation must use an updateable query.

    But here is my execute code
    Code:
    // Javascript
    var oConnection;
    var sConnectionString = 'Provider=Microsoft.Jet.OLEDB.4.0; 
        Data Source=C:\Inetpub\wwwroot\wwwvbdungeonnet\database\dungeon.mdb';
    
    oConnection = Server.CreateObject( 'ADODB.Connection' );
    
    try {
      // open the database, catching any errors that occur
      oConnection.Open( sConnectionString );
    } catch ( e ) {
      // display error message
      DatabaseException ( e );
    }
    
    if ( oConnection )
      oConnection.Execute( 'INSERT INSERT INTO MailingList (Email) VALUES (\'[email protected]\');' );

  4. #4
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Other than the word Insert twice in the SQL statement (Which I'm assuming was just a typo), I don't see anything wrong.. although I must admit I've never used Javascript to do that before.. (Come to think of it why ARE you using Javascript? The code is running on the server side..)
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  5. #5
    Lively Member
    Join Date
    Jan 2001
    Posts
    118
    Pay me and I will give your answer

    I had the SAME problem. Is you database read only ? Right click and make SURE it is not read only. And if that doesn't work... check your permissions on the server.

    But my $$ is on that your database is set to read only!

    (Well mine was when I also got the same error.... what a day that was)

    P.s
    oConnection.Execute( 'INSERT INSERT INTO MailingList (Email) VALUES (\'[email protected]\');' );

    I'm not sure about the \'[email protected]\ the ('\') if it will work in SQL like that.

    Without the '\' it should work fine your SQL.
    Last edited by Sundance Kid; May 3rd, 2001 at 07:24 AM.

  6. #6
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    The '\' is gotta be an escape character for the single quotes...

    First time I've seen someone use JScript for ASP, although it supposedly is faster than VBScript.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  7. #7
    kayoca
    Guest
    Originally posted by JoshT

    First time I've seen someone use JScript for ASP, although it supposedly is faster than VBScript.
    It's not that hard to use JavaScript in ASP. JavaScript is more Object Oriented then VBScript.

    But i have found out why this error is displayed at my screen. The guest account didnt have any rights to my database.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width