Toon posts:

[asp/sql] Insert into

Pagina: 1
Acties:
  • 45 views sinds 30-01-2008

Verwijderd

Topicstarter
Ik heb form dat in een database gezet moet worden. Maar nu loop ik tegen het volgende probleem aan.

Hij geeft de hele tijd als error dit:
code:
1
2
3
Microsoft JET Database Engine error '80004005' 
Operation must use an updateable query. 
/intake/cam3.asp, line 10


en ik snap niet waarom. het lijk mij raar dat ik een update query moet gebruiken als ik een totaal nieuwe record wil aanmaken.

Ik heb de search gebruikt alleen daar kan ik mijn probleem niet vinden. Mischien dat jullie een oplossing weten

Hier de code.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<%
frmnummer=request.form("campagne_naam")
frmnaam=request.form("naam_aanvrager")

set conn = Server.CreateObject("ADODB.Connection")
conn.open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.Mappath("/intake/test.mdb")

sqlstatement="INSERT INTO tab(test1, test2) VALUES ('"&frmnummer&"', '"&frmnaam&"')"

conn.execute(sqlstatement)

conn.Close
set conn=Nothing
%>

  • gorgi_19
  • Registratie: Mei 2002
  • Laatst online: 15:16

gorgi_19

Kruimeltjes zijn weer op :9

Staan je rechten goed op de database? IUSR_account voldoende schrijfrechten ook?

Digitaal onderwijsmateriaal, leermateriaal voor hbo


Verwijderd

Topicstarter
ja, read en write staan aan moet toch genoeg zijn lijkt mij

  • RobIII
  • Registratie: December 2001
  • Niet online

RobIII

Admin Devschuur®

^ Romeinse Ⅲ ja!

(overleden)
Kijk eens in de security permissions van je server voor IUSR...(Op IIS en Map niveau).

Enne...Google! en Google! en Microsoft KB!
80004005 - Operation must use an updateable query


Issue
The following error: 80004005 - Operation must use an updateable query -
occurs on a page when an event is updating or inserting into a recordset.


Solution
There are several things that may cause this ODBC error. Many of the
possible reasons are listed in the table below. The permissions that are
set on the directory the database is in. IUSR privileges must be set to
"read/write".
The permissions on the database itself does not have full read/write
privileges in effect.

This error can also occur when the database is located outside of the
inetpub/wwwroot directory. Though the information is still able to be viewed
and searched, it cannot be updated unless it is in the wwwroot directory.
The recordset itself was based on a non-updateable query. If you have
non-updateable queries within your database (joins are a good example) -
this could be the cause. You would actually have to restructure your queries
so that they are updateable.


Additional information
For additional information on this error, please refer to following article
in Microsoft's Knowledge Base:

Q174640 - PRB: ASP: "The query is Not Updateable..." Error when Updating

[ Voor 136% gewijzigd door RobIII op 13-02-2003 15:13 ]

There are only two hard problems in distributed systems: 2. Exactly-once delivery 1. Guaranteed order of messages 2. Exactly-once delivery.

Je eigen tweaker.me redirect

Over mij


  • D2k
  • Registratie: Januari 2001
  • Laatst online: 09-01 11:25

D2k

der zijn meer searches dan alleen de onze

Doet iets met Cloud (MS/IBM)


Dit topic is gesloten.