Operation must use an updateable query

They have: 164 posts

Joined: Nov 2001

can anybody tell me wat this error means??

Warning: SQL error: [Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query., SQL state S1000 in SQLExecDirect in c:\inetpub\wwwroot\amega\shared.inc on line 8
'

nike_guy_man's picture

They have: 840 posts

Joined: Sep 2000

What is the query and what data is in that row?
What are you trying to do?

They have: 164 posts

Joined: Nov 2001

just trying to insert data into database.

line 8

<?php
odbc_errormsg
();
?>

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

What query was run just prior to that?

nike_guy_man's picture

They have: 840 posts

Joined: Sep 2000

That is line 8 of shared.inc?

I'm not familiar with ODBC... what happens when you take that line out?
is it necessary to have it in there?

They have: 164 posts

Joined: Nov 2001

well, when i test this system using windows98, php4.0.6 and access 2000, everything works fine.

but when i used windows xp professional, php4.1.2 and access xp, i got this error and data are not inserted into the table.

i tried to recreate the database in accessxp but still getting the same error.

i dun think is my query's problem cos everything works fine when i tested in windows 98.

Peter J. Boettcher's picture

They have: 812 posts

Joined: Feb 2000

Sounds to me like the security settings in XP are tighter. Check to make sure the directory your database is in has read/write access for the IUSR & IWAM accounts. If that fails try throwing the database inside a folder in your website (unless it is already!)

PJ | Are we there yet?
pjboettcher.com

They have: 164 posts

Joined: Nov 2001

Quote:
Check to make sure the directory your database is in has read/write access for the IUSR & IWAM accounts.

how to check tat? how to change it to write access??

ok, even it's in read access, if i recreate the whole database in xp, i still got the error..

and its already in a folder..

Peter J. Boettcher's picture

They have: 812 posts

Joined: Feb 2000

Just use Windows Explorer to navigate to the folder that the database is in, do a right-click on the folder and select properties, then click the Security tab and see what accounts have permission on that folder.

PJ | Are we there yet?
pjboettcher.com

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.