Connecting Tech Pros Worldwide Forums | Help | Site Map

SQL updates on MS Access Database: error: Operation must use an updateable query.

Neil Zanella
Guest
 
Posts: n/a
#1: Nov 19 '05
Hello,

I am trying to update an MS access database from ASP.NET. I am using IIS on
Windows XP Pro. I can issue SELECT statements from ASP.NET using ADO.NET but
I cannot seem to be able to carry out INSERT statements. Here is the error
which I am getting:

Exception Details: System.Data.OleDb.OleDbException:
Operation must use an updateable query.

Line 67: cmd.ExecuteNonQuery();

I have found some posts where users had a similar problem and it seems that
they were able to resolve it by setting NTFS file permissions. However I am
not sure about how to go about doing this:

I wonder whether someone could please post precise instructions on how to
solve this. I have tried running inetmgr and setting them from there but
I must have done something wrong as I am still getting the same error.

Thanks a lot!!!

Neil

Elton Wang
Guest
 
Posts: n/a
#2: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


Hi Neil,

Check out ASPNET account permission to access the folder
that Access database is in. The ASPNET account might only
have permission of Read, but not permission of Write.

Hope it helps.

Elton Wang
elton_wang@hotmail.com
[color=blue]
>-----Original Message-----
>Hello,
>
>I am trying to update an MS access database from ASP.NET.[/color]
I am using IIS on[color=blue]
>Windows XP Pro. I can issue SELECT statements from[/color]
ASP.NET using ADO.NET but[color=blue]
>I cannot seem to be able to carry out INSERT statements.[/color]
Here is the error[color=blue]
>which I am getting:
>
>Exception Details: System.Data.OleDb.OleDbException:
>Operation must use an updateable query.
>
>Line 67: cmd.ExecuteNonQuery();
>
>I have found some posts where users had a similar problem[/color]
and it seems that[color=blue]
>they were able to resolve it by setting NTFS file[/color]
permissions. However I am[color=blue]
>not sure about how to go about doing this:
>
>I wonder whether someone could please post precise[/color]
instructions on how to[color=blue]
>solve this. I have tried running inetmgr and setting them[/color]
from there but[color=blue]
>I must have done something wrong as I am still getting[/color]
the same error.[color=blue]
>
>Thanks a lot!!!
>
>Neil
>.
>[/color]
nzanella@cs.mun.ca
Guest
 
Posts: n/a
#3: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


Thank you for your reply,

What I ended up doing was I clicked on the MS Access (.mdb) file and
then under Properties -> Securities added an account called Everyone
and set permissions to "Full Control" for this account. So now I can
update the MS Access file via the ASP.NET web interface.

Regards,

Neil

Ken Cox [Microsoft MVP]
Guest
 
Posts: n/a
#4: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


Hi Neil,

This refers to ASP, but the fix is the same if you substitute the ASPNET
account for IUSR_<machinename>

PRB: ASP Returns 'Operation Must Use an Updateable Query' Error

http://support.microsoft.com/default...b;en-us;175168

"Neil Zanella" <nzanella@cs.mun.ca> wrote in message
news:b68d2f19.0501221104.52767149@posting.google.c om...[color=blue]
> Hello,
>
> I am trying to update an MS access database from ASP.NET. I am using IIS
> on
> Windows XP Pro. I can issue SELECT statements from ASP.NET using ADO.NET
> but
> I cannot seem to be able to carry out INSERT statements. Here is the error
> which I am getting:
>
> Exception Details: System.Data.OleDb.OleDbException:
> Operation must use an updateable query.
>
> Line 67: cmd.ExecuteNonQuery();
>
> I have found some posts where users had a similar problem and it seems
> that
> they were able to resolve it by setting NTFS file permissions. However I
> am
> not sure about how to go about doing this:
>
> I wonder whether someone could please post precise instructions on how to
> solve this. I have tried running inetmgr and setting them from there but
> I must have done something wrong as I am still getting the same error.
>
> Thanks a lot!!!
>
> Neil[/color]

MOSIMI
Guest
 
Posts: n/a
#5: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#6: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#7: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#8: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#9: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#10: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#11: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#12: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#13: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#14: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#15: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#16: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#17: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#18: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#19: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#20: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#21: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#22: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#23: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#24: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#25: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#26: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#27: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#28: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#29: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#30: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#31: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#32: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#33: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#34: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#35: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#36: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#37: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#38: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#39: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#40: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#41: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#42: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#43: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#44: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#45: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#46: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#47: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#48: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#49: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
MOSIMI
Guest
 
Posts: n/a
#50: Nov 19 '05

re: SQL updates on MS Access Database: error: Operation must use an updateable query.


<P>Did you get your question answered? What was the correct solution?</P>
<P>Thanks</P>
sent via http://www.visual-basic-data-mining.com
Closed Thread