Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
ADODB.Recordset Error: ADODB.Recordset (0x800A0CB3) (0x800A0CB3)
Old 06-29-2009, 06: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
 
 
Register now for full access!
Old 06-29-2009, 02:28 PM Re: ADODB.Recordset Error: ADODB.Recordset (0x800A0CB3) (0x800A0CB3)
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,336
Name: Chris Hirst
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. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
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.85304 seconds with 12 queries