Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding records via ADO-stupid question

Status
Not open for further replies.

MikeT

IS-IT--Management
Feb 1, 2001
376
US
(assume conn = the database connection)
set rs = server.CreateObject("adodb.recordset")
rs.Open "myTable", conn
rs.AddNew
rs("Date") = Request.Form("datDate")
rs.update
rs.close

I get this error:
ADODB.Recordset error '800a0cb3'
Object or provider is not capable of performing requested operation.
(points to rs.addnew line)

wtf?
 
figured it out:
include the adovbs.inc file, and
rs.Open "myTable", conn, adOpenKeyset,adLockOptimistic

but why is this?
 
What database type?
If Oracle, then MSDN search of "ADO ERROR 800A0CB3" gives
Code:
When you perform updates or add new records to an Oracle database by using Microsoft ActiveX Data Objects (ADO), the following error may occur: 

ADODB.Recordset (0x800A0CB3)
Object or provider is not capable of performing requested operation. 

CAUSE
This error message is generated because the Oracle OLE DB Provider does not support server-side updates. 

RESOLUTION
You must use client-side cursors to perform updates against an Oracle database by using the Microsoft Oracle OLE DB Provider. To do this, before opening the recordset, specify the CursorLocation property to equal adUseClient (or the number "3"). 

STATUS
This behavior is by design.
 
Actually its an Access db, but the resolution seems to be the same. Thanks for the reply!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top