Reply
ADODB.Recordset Error: ADODB.Recordset (0x800A0CB3) (0x800A0CB3)
Old 06-29-2009, 07:03 AM ADODB.Recordset Error: ADODB.Recordset (0x800A0CB3) (0x800A0CB3)
Junior Talker

Posts: 1
Name: Xenofon
Trades: 0
Hello,

i' m using the follwing code to retrieve data from an sqlserver and handle them with a recordset. The problem is that, when i try to modify data from recordset i get the error message:
"Error: ADODB.Recordset (0x800A0CB3)
Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype."

I try all the combinations of locking, but nothing seems to work out.
Is it the version of the sqloledb.dll (mine is 2000.85.1132.0)?
Do i need other driver that supports updateable recordset?
How can i know?
Please Help!

Here is the code:

<%
conSTRING="Provider=SQLNCLI;Server=" & srv_name & ";Database=" & database_name &";UID=uid;PWD=password;"

Set con = Server.CreateObject("ADODB.Connection")

con.Open conSTRING
set rs = server.CreateObject ("ADODB.Recordset")

do while not rs.EOF
rs("tradecode") = "123"
rs.update()
rs.MoveNext
loop

Set con = Nothing
set rs=nothing

%>
xenofon is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 06-29-2009, 03:28 PM Re: ADODB.Recordset Error: ADODB.Recordset (0x800A0CB3) (0x800A0CB3)
chrishirst's Avatar
Super Moderator

Posts: 21,619
Location: Blackpool. UK
Trades: 0
it is NOT record locking you need to be concerned with, but the CursorLocation

The default is adUseServer which is a read only, non-updatable recordset set it to adUseClient instead.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to ADODB.Recordset Error: ADODB.Recordset (0x800A0CB3) (0x800A0CB3)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.11333 seconds with 13 queries