473,563 Members | 2,681 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

must use updateable query

I'm getting this error on my web page:

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable
query.
/searchweb33.asp , line 5014

Here is the code producing it:

myDSN="d:\data\ main_database.m db
set conntemp3=serve r.createobject( "adodb.connecti on")
conntemp3.Mode = 3 '3 = adModeReadWrite
conntemp3.open myDSN
sqltemp="update [db_version_tabl e] set db_title='used' "
set rstemp3=conntem p3.execute(sqlt emp)

The error is produced on the execute statement

What am I missing here? This code used to work fine on another server.

It says use an updateable query, and my query is updatable.

Any help would be appreciated.
Nov 24 '05 #1
5 1531
"Web Search Store" <in**@websearch store.com> wrote in
news:uH******** ******@TK2MSFTN GP15.phx.gbl:
I'm getting this error on my web page:

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Operation must use an
updateable query.
/searchweb33.asp , line 5014

Here is the code producing it:

myDSN="d:\data\ main_database.m db
set conntemp3=serve r.createobject( "adodb.connecti on")
conntemp3.Mode = 3 '3 = adModeReadWrite
conntemp3.open myDSN
sqltemp="update [db_version_tabl e] set db_title='used' "
set rstemp3=conntem p3.execute(sqlt emp)

The error is produced on the execute statement

What am I missing here? This code used to work fine on another
server.

It says use an updateable query, and my query is updatable.

This is a common question. Search the asp.net groups on
http://groups.google.com/ for "updateable query".

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/
Nov 24 '05 #2
Make sure the ASPNET account (or the impersonated user) has modify
privileges on the directory where the .mdb file is stored. Access needs to
create a locking file as it works.

"Web Search Store" <in**@websearch store.com> wrote in message
news:uH******** ******@TK2MSFTN GP15.phx.gbl...
I'm getting this error on my web page:

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable
query.
/searchweb33.asp , line 5014

Here is the code producing it:

myDSN="d:\data\ main_database.m db
set conntemp3=serve r.createobject( "adodb.connecti on")
conntemp3.Mode = 3 '3 = adModeReadWrite
conntemp3.open myDSN
sqltemp="update [db_version_tabl e] set db_title='used' "
set rstemp3=conntem p3.execute(sqlt emp)

The error is produced on the execute statement

What am I missing here? This code used to work fine on another server.

It says use an updateable query, and my query is updatable.

Any help would be appreciated.

Nov 24 '05 #3
I blogged how to solve your problem at:-
http://spaces.msn.com/members/naijacoder
Hope that helps
Patrick

"Web Search Store" <in**@websearch store.com> wrote in message
news:uH******** ******@TK2MSFTN GP15.phx.gbl...
I'm getting this error on my web page:

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable
query.
/searchweb33.asp , line 5014

Here is the code producing it:

myDSN="d:\data\ main_database.m db
set conntemp3=serve r.createobject( "adodb.connecti on")
conntemp3.Mode = 3 '3 = adModeReadWrite
conntemp3.open myDSN
sqltemp="update [db_version_tabl e] set db_title='used' "
set rstemp3=conntem p3.execute(sqlt emp)

The error is produced on the execute statement

What am I missing here? This code used to work fine on another server.

It says use an updateable query, and my query is updatable.

Any help would be appreciated.

Nov 24 '05 #4
Welll I know nothing about asp but an update query doesn't return records so
I would look at changing
set rstemp3=conntem p3.execute(sqlt emp)

to
call conntemp3.execu te(sqltemp)
--
Terry Kreft

"Web Search Store" <in**@websearch store.com> wrote in message
news:uH******** ******@TK2MSFTN GP15.phx.gbl...
I'm getting this error on my web page:

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable
query.
/searchweb33.asp , line 5014

Here is the code producing it:

myDSN="d:\data\ main_database.m db
set conntemp3=serve r.createobject( "adodb.connecti on")
conntemp3.Mode = 3 '3 = adModeReadWrite
conntemp3.open myDSN
sqltemp="update [db_version_tabl e] set db_title='used' "
set rstemp3=conntem p3.execute(sqlt emp)

The error is produced on the execute statement

What am I missing here? This code used to work fine on another server.

It says use an updateable query, and my query is updatable.

Any help would be appreciated.

Nov 24 '05 #5
Hello Patrick,

Thanks very much. Your blog entry led me to get the problem solved. (The
problem resulted from creating the folder from a different machine, so it
inherited all the permissions from the other machine, which were incorrect.
Once I could reveal the 'security' tab, I changed to folder permissions to
match the ones on the other machine.

Thanks again!

Scott
"Patrick.O. Ige" <pa********@opt usnet.com.au> wrote in message
news:u5******** ******@TK2MSFTN GP12.phx.gbl...
I blogged how to solve your problem at:-
http://spaces.msn.com/members/naijacoder
Hope that helps
Patrick

"Web Search Store" <in**@websearch store.com> wrote in message
news:uH******** ******@TK2MSFTN GP15.phx.gbl...
I'm getting this error on my web page:

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Operation must use an
updateable
query.
/searchweb33.asp , line 5014

Here is the code producing it:

myDSN="d:\data\ main_database.m db
set conntemp3=serve r.createobject( "adodb.connecti on")
conntemp3.Mode = 3 '3 = adModeReadWrite
conntemp3.open myDSN
sqltemp="update [db_version_tabl e] set db_title='used' "
set rstemp3=conntem p3.execute(sqlt emp)

The error is produced on the execute statement

What am I missing here? This code used to work fine on another server.

It says use an updateable query, and my query is updatable.

Any help would be appreciated.


Nov 26 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
902
by: Tom wilson | last post by:
This is driving me nuts. I'm trying to update an Excel spreadsheet using ADO.Net and Oledb in VB.Net. The connection is open, the adapter is connected and the dataset is loaded. Here's the code in question: myDataRow = myDataSet.Tables(0).Rows(RowNum) myDataRow(ColumnCount) = Ailment Adapter.UpdateCommand = New OleDbCommand("UPDATE SET...
6
7551
by: ano1optimist | last post by:
I have been running these queries in Access 2000 with no problems. This week, I had to install Access 2003 to create some runtime versions for another application, and now I keep getting "operation must be an updateable query" messages when I try to run the same old queries. Here is a sample of one that is no longer working: UPDATE...
4
6496
by: MDW | last post by:
Hey all. I'm confused. I'm trying to add a single record into an Access 2000 database using ASP.Net. Here is the code: objConn = New OleDbConnection(strConnect) objConn.Open objCommand = New OleDbCommand("INSERT INTO LOGIN_MASTER (LOGIN_ID, PWD, F_NAME, L_NAME, TYPE_ID) VALUES ('" & strEmail & "','" & strPwd & "','" &
606
14393
by: Neil Zanella | last post by:
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...
4
2922
by: Jim in Arizona | last post by:
Continuing my lessons out of a book, I ran into a problem when trying for the first time to update a datastore (access database in this case). My Code: Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim strConnection, strSQL As String Dim objDataSet As New DataSet() Dim objConnection As...
2
7506
by: SheryMich | last post by:
Hi - I am having a bit of a problem with the insert into a database. When I go to insert a record into an un-keyed, single table Access database, I get the aforementioned ''Operation Must Use an Updateable Query' error. Points: - The database is in my local temp directory, not inetpub - The directory has read/write permissions - The...
8
2997
by: Jim in Arizona | last post by:
I've been using an example out of a book to be able to edit the rows in a database. I am getting the following error: ======================================================== ======================================================== Server Error in '/' Application....
11
3938
by: Arpan | last post by:
I have always been working with SQL Server 2005 for ASP.NET apps but due to some reasons, had to revert back to MS-Access 2000. When I try to insert/update a MS-Access DB table (MDB), ASP.NET generates the following error: Operation must use an updateable query. pointing to a line that says
1
2746
by: pavya | last post by:
Hi, I have developed one Web application. At that time my system had a FAT file system on it and this application worked properly. But now i have converted FAT file system to NTFS file system and whenever i am trying to run this application then it through the exception. I have used MS Access as a database. The error is as follows... Server...
0
7659
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7580
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7882
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7634
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7945
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5481
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5208
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3618
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2079
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.