473,386 Members | 1,736 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,386 software developers and data experts.

i need help in ADO connection during insertion

my statement is:
<%set cs=server.CreateObject("adodb.connection")
cs.Open "provider=microsoft.jet.oledb.4.0;data source=d:\asp\lo.mdb"
regno=1130
cs.Execute "insert into attendance (registerno) values ("&regno&")"
%>
Error Type:
Microsoft JET Database Engine (0x80004005)
Operation must use an updateable query.
/asp/new.asp, line 5


i want to know about what is this error?
Feb 26 '07 #1
2 1225
your script look correct for me but maybe you don't have the permission to insert value to that table

but did you set the openconnection and try it with ()

maybe works
i just read your question and want to answer

<%



set cs=server.CreateObject("adodb.connection")
cs.Open "provider=microsoft.jet.oledb.4.0;data source=d:\asp\lo.mdb"
regno=1130
cs.Execute ("insert into attendance (registerno) values ("&regno&")")
%>


my statement is:
<%set cs=server.CreateObject("adodb.connection")
cs.Open "provider=microsoft.jet.oledb.4.0;data source=d:\asp\lo.mdb"
regno=1130
cs.Execute "insert into attendance (registerno) values ("&regno&")"
%>
Error Type:
Microsoft JET Database Engine (0x80004005)
Operation must use an updateable query.
/asp/new.asp, line 5


i want to know about what is this error?
Feb 26 '07 #2
vijaydiwakar
579 512MB
my statement is:
<%set cs=server.CreateObject("adodb.connection")
cs.Open "provider=microsoft.jet.oledb.4.0;data source=d:\asp\lo.mdb"
regno=1130
cs.Execute "insert into attendance (registerno) values ("&regno&")"
%>
Error Type:
Microsoft JET Database Engine (0x80004005)
Operation must use an updateable query.
/asp/new.asp, line 5


i want to know about what is this error?
just try this qry
cs.Execute "insert into attendance (registerno) values ("& regno &")"
Feb 26 '07 #3

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

Similar topics

0
by: Bob | last post by:
I have an ASP.NET web application that has been running without any problems for a while. I recently transferred the site to shared hosting and had multiple users start to use the site. The problem...
5
by: John | last post by:
Hi: I'd like to implement a simple map, which is a 2-D plane with many points, e.g., 100. The points are not evenly distributed, i.e., some points may have two neighbor points; some may have 5...
10
by: Raghavendra Mahuli | last post by:
i need to store a lot of integers(say 10,000) in a datastructure. The constraints are: 1. It should be fast. 2. It should be orderded or sorted. 3.Insterting and deleting should be fast. 4. The...
20
by: Patrick Guio | last post by:
Dear all, I have some problem with insertion operator together with namespace. I have a header file foo.h containing declaration of classes, typedefs and insertion operators for the typedefs in...
5
by: lazydb2dba | last post by:
I would like to know if there is any reason that a connection port is not listening. I've found the following message in my db2diag.log DIA3003E Error encountered in "TCPIP" protocol support....
0
by: polocar | last post by:
Hi, I have noticed a strange behaviour of CurrencyManager objects in C# (I use Visual Studio 2005 Professional Edition). Suppose that you have a SQL Server database with 2 tables called "Cities"...
3
by: Ted | last post by:
In WSAT, I get the following error when trying to set up my provider: Could not establish a connection to the database. If you have not yet created the SQL Server database, exit the Web Site...
15
by: ingejg | last post by:
I am starting to study internet synchronization, and my head is still spinning since internet is not my forte, however my boss is breathing down my neck at the moment. Our company has only one...
1
by: sahillihas8487 | last post by:
1.Unable to successfully establish a connection to web-server retrieving URI . "Web-server closing the connection after connection was just established." 2."General un-handled exception occurred...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
0
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,...
0
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...
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...

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.