Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 8th, 2004, 08:35 PM
Registered User
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Operation Requires Updateable Query

I'm new to ASP and sql. I'm trying to create a simple ASP script that updates records on MS Access db file. Whenever I try to test it, I get an error: "Operation requires updateable query", and the line it's referring to is [var recSet = objConn.Execute(sqlString);].

My sql string is:
"UPDATE Clients SET FirstName='John' WHERE FirstName='Joe';"

-------------

->Is it ok to use same field name for SET and WHERE?
->Is this why I'm getting an error?

 
Old December 8th, 2004, 09:31 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hello,

  This is due to insufficient privileges on the database or virtual folder. Check the privileges. Or database may be readonly

--------
Rajani

 
Old December 10th, 2004, 10:01 PM
Registered User
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

I've checked the permissions of all related folders (and db file), and found out the write permissions are enabled. Also, when I use the same sql string on my script on SQL view of MS Access, it is able to update the DB. What other privileges can I check? What else can I do?

---------

Mark

 
Old December 13th, 2004, 09:14 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Does the I_USR<machine_name> have access to write to the folder of the DB?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Operation must use an updateable query sandhya12_rcnair ASP.NET 2.0 Professional 3 November 11th, 2008 11:56 AM
Operation must use an updateable query darkhalf Access 4 February 29th, 2008 12:50 PM
Operation must use an updateable query hchlebowski ASP.NET 1.0 and 1.1 Basics 1 January 24th, 2006 07:11 AM
Operation must use an updateable query. Laindir Sarnon Classic ASP Databases 6 September 2nd, 2004 04:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.