473,396 Members | 1,852 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to fix "operation must be an updateable query" error?

Whenever I execute the following ASP code in IIS environment, I get the error as- "operation must be an updateable query"
Following is a simple ASP code for insertion of record retrieved from querystring into database

Expand|Select|Wrap|Line Numbers
  1. <%
  2. dim conn,rs,name,address,sql
  3. set conn=Server.CreateObject("ADODB.Connection")
  4. conn.Provider="Microsoft.Jet.OLEDB.4.0"
  5. conn.Open "c:/webdata/northwind.mdb"
  6. set rs=Server.CreateObject("ADODB.Recordset")
  7.  
  8. name=Request.QueryString("entry_name")
  9. address=Request.QueryString("entry_address")
  10.  
  11. sql="INSERT INTO Table(name,address) values('"&name&"','"&address&")"
  12. conn.Execute sql
  13. %>
I get this type of error for the underlined command.
Please anybody specify me a solution.
Jan 7 '11 #1
4 2183
Rabbit
12,516 Expert Mod 8TB
Table is a reserved name, and so is Name, did you really name your table table and your field name?
Jan 7 '11 #2
I named Table table in which there are two fields viz. name and address
Jan 8 '11 #3
Rabbit
12,516 Expert Mod 8TB
That's probably why then. Either rename them or qualify them.
Jan 8 '11 #4
jhardman
3,406 Expert 2GB
There also appears to be a missing single quote (&apos;) before the last parenthesis
Jan 10 '11 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: What-a-Tool | last post by:
I'm going out out of my mind trying to get this to work with no luck. The error message I get is at the bottom. Can someone please tell me what I'm doing wrong here. I've tried this a million...
0
by: Raghuraman | last post by:
Hai , I have designed a report which involved 2 tables thru DSN.From vb i am connecting the report thru the Crystal report control . The thing is the name of the database and the table would differ...
1
by: news | last post by:
Hi, I have just deployed my private assembly in the bin directory of my ISP and I am getting the following error. I am pretty sure it is able to find my assemblyPLEASE tell me how can I find...
10
by: Shawn | last post by:
JIT Debugging failed with the following error: Access is denied. JIT Debugging was initiated by the following account 'PLISKEN\ASPNET' I get this messag in a dialog window when I try to open an...
2
by: venkatesh | last post by:
hai , i am using turboc++ compiler to run my c program. i written an program with structure sa foolws struct s { float x; }y; when i am accessing the variable x it shows the following error...
0
by: harinath | last post by:
Hi, i'm trying to create my first ASP.NET project ( HelloASPWorld project) but an error occured when I put OK button in NewProject. ERROR: "The Web server reported the following error when...
1
by: nethajireddy | last post by:
Hello Techies.. In my office one user (developer) saying that she is frequently facing this error what i have given below.. "--------------------------- Microsoft Visual Basic...
4
by: suganthy | last post by:
Hi Frnz, I have problem in validating my website,using wc3 validation control, Here the following error i got while debugging my layout.can any one find solution to this problem. # Line 489,...
3
thatos
by: thatos | last post by:
I run the following code on Eclipse and it gave me the following error: This method must return a result of type String at Song.toText(Song.java:13) at Song.main(Song.java:46) /* Most of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.