473,466 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Current Recordset does not support bookmarks. This may be a limitation of the provider or of the selected cursortype.

ADODB.Recordset error '800a0cb3'
Current Recordset does not support bookmarks. This may be a limitation of
the provider or of the selected cursortype.

I am moving my webserver from NT4 using SQL to win2003 using SQL 2003

I get the above error when my asp page does teh line:

Rs.absolutepage = intCurrentPage
I tested teh value of intCurrent page and teh value is 1.
Any ideas? The .asp Page works perfectly fine on teh old machine.
May 2 '06 #1
9 24271

Johnfli wrote:
ADODB.Recordset error '800a0cb3'
Current Recordset does not support bookmarks. This may be a limitation of
the provider or of the selected cursortype.

I am moving my webserver from NT4 using SQL to win2003 using SQL 2003

I get the above error when my asp page does teh line:

Rs.absolutepage = intCurrentPage
I tested teh value of intCurrent page and teh value is 1.
Any ideas? The .asp Page works perfectly fine on teh old machine.


http://www.aspfaq.com/show.asp?id=2320

adovbs.inc?

--
Mike Brind

May 3 '06 #2
Johnfli wrote:
ADODB.Recordset error '800a0cb3'
Current Recordset does not support bookmarks. This may be a
limitation of the provider or of the selected cursortype.

I am moving my webserver from NT4 using SQL to win2003 using SQL 2003
No such thing. Do you mean SQL 2000 or SQL 2005?

I get the above error when my asp page does teh line:

Rs.absolutepage = intCurrentPage
I tested teh value of intCurrent page and teh value is 1.
Any ideas? The .asp Page works perfectly fine on teh old machine.


Well, you probably have a different version of ADO (MDAC) on the new machine
whose OLE DB provider is more strict about the cursor types that support
bookmarks.

1. Do you really need to support AbsolutePage? If you are using a recordset
for paging, you may want to consider one of the more efficient methods
talked about in this article: http://www.aspfaq.com/show.asp?id=2120

2. If you are really married to utilizing the absolutepage property this
way, we are going to need more information:
-what provder are you using?
-what cursortype are you requesting for the recordset?
-what cursortype are you actually getting? (do a response.write
rs.cursortype after opening the recordset)

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
May 3 '06 #3
The response.write on teh cursortype came out as 0
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Johnfli wrote:
ADODB.Recordset error '800a0cb3'
Current Recordset does not support bookmarks. This may be a
limitation of the provider or of the selected cursortype.

I am moving my webserver from NT4 using SQL to win2003 using SQL 2003


No such thing. Do you mean SQL 2000 or SQL 2005?

I get the above error when my asp page does teh line:

Rs.absolutepage = intCurrentPage
I tested teh value of intCurrent page and teh value is 1.
Any ideas? The .asp Page works perfectly fine on teh old machine.


Well, you probably have a different version of ADO (MDAC) on the new
machine whose OLE DB provider is more strict about the cursor types that
support bookmarks.

1. Do you really need to support AbsolutePage? If you are using a
recordset for paging, you may want to consider one of the more efficient
methods talked about in this article:
http://www.aspfaq.com/show.asp?id=2120

2. If you are really married to utilizing the absolutepage property this
way, we are going to need more information:
-what provder are you using?
-what cursortype are you requesting for the recordset?
-what cursortype are you actually getting? (do a response.write
rs.cursortype after opening the recordset)

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

May 3 '06 #4
Well, if you look that up at
http://msdn.microsoft.com/library/en...ortypeenum.asp,
you will see that 0 translates to adOpenForwardOnly, which according to the
chart on this page:
http://msdn.microsoft.com/library/en...cursortype.asp, does
not support adBookmark (bookmarks). So this explains why absolutepage is not
working. What now needs to be explained is why you are getting a
forward-only cursor, which I suspect is not intended (and which the same
exact code on your NT4 box was not returning). In order to answer that
question, YOU need to provide the answer to ALL the other questions I asked
in my previous reply. (why does it feel like I'm pulling teeth? I asked 4
questions in my previous post and you answered one of them. Don't you want
to get this resolved today? :-) )

In addition, you will need to show the code used to open your connection
(including the connection string - you can replace the username and password
with xxxx if you aren't using integrated authentication to connect) and the
code used to create and open the recordset. If you're dealing with a lot of
user inputs and a long sql statement, you can snip that out because it
probably isn't relevant.

Bob Barrows

Johnfli wrote:
The response.write on teh cursortype came out as 0
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Johnfli wrote:
ADODB.Recordset error '800a0cb3'
Current Recordset does not support bookmarks. This may be a
limitation of the provider or of the selected cursortype.

I am moving my webserver from NT4 using SQL to win2003 using SQL
2003


No such thing. Do you mean SQL 2000 or SQL 2005?

I get the above error when my asp page does teh line:

Rs.absolutepage = intCurrentPage
I tested teh value of intCurrent page and teh value is 1.
Any ideas? The .asp Page works perfectly fine on teh old machine.


Well, you probably have a different version of ADO (MDAC) on the new
machine whose OLE DB provider is more strict about the cursor types
that support bookmarks.

1. Do you really need to support AbsolutePage? If you are using a
recordset for paging, you may want to consider one of the more
efficient methods talked about in this article:
http://www.aspfaq.com/show.asp?id=2120

2. If you are really married to utilizing the absolutepage property
this way, we are going to need more information:
-what provder are you using?
-what cursortype are you requesting for the recordset?
-what cursortype are you actually getting? (do a response.write
rs.cursortype after opening the recordset)

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so
I don't check it very often. If you must reply off-line, then remove
the "NO SPAM"


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
May 3 '06 #5
I am useing teh SQL that is on my SBS 2003 box, so I magine it is SQL 2000
As far as needing to use absolute page, it is teh only item I know how to
use. I am not a web creater full time. I just support what we have and
create new when needed. IF there is a better way, I am more than happy to
do it that way.
Here is the code you requested.:

objConn.Open "Provider=SQLOLEDB.1;Password=xxxxx;Persist Security
Info=True;User ID=xxxx;Initial Catalog=TTSI;Data Source=MAILSVR"

if txtPONumber = "" then

strFBSQL = "SELECT * FROM TTSITracing WHERE " & strWhichCompany & " = "
& strUserID & " AND (" & tPickupDelivery & ">= " & "'" & eDate & "'" & " AND
" & tPickupDelivery & "<= " & "'" & sDate & "'" & ") ORDER BY " &
strSortOrder & " ;"

else

strFBSQL = "SELECT * FROM TTSITracing WHERE " & strWhichCompany & " = "
& strUserID & " AND ConsigneeRefNum like '%" & txtPONumber & "%' AND (" &
tPickupDelivery & ">= " & "'" & eDate & "'" & " AND " & tPickupDelivery &
"<= " & "'" & sDate & "'" & ") ORDER BY " & strSortOrder & " ;"

end if

'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~

rsFBills.Open strFBSQL, objConn, 3,3

If not (rsFBills.BOF and rsFBills.EOF) then

' response.write "Hello" '

rsFBills.PageSize = 20

intPageCount = rsFBills.PageCount
If Request("PageNo")= "" or Request("PageNo") =0 or Request("PageNo") < 1
Then

intCurrentPage = 1

Else

intCurrentPage = Request("PageNo")

' To define last page in case user enters a larger page count

If CInt(Request("PageNo")) > intPageCount Then

intCurrentPage = intPageCount

End If
End If

response.write rsFBills.cursortype

rsFBills.absolutepage = intCurrentPage

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:uR**************@TK2MSFTNGP05.phx.gbl...
Well, if you look that up at
http://msdn.microsoft.com/library/en...ortypeenum.asp,
you will see that 0 translates to adOpenForwardOnly, which according to
the
chart on this page:
http://msdn.microsoft.com/library/en...cursortype.asp,
does
not support adBookmark (bookmarks). So this explains why absolutepage is
not
working. What now needs to be explained is why you are getting a
forward-only cursor, which I suspect is not intended (and which the same
exact code on your NT4 box was not returning). In order to answer that
question, YOU need to provide the answer to ALL the other questions I
asked
in my previous reply. (why does it feel like I'm pulling teeth? I asked 4
questions in my previous post and you answered one of them. Don't you want
to get this resolved today? :-) )

In addition, you will need to show the code used to open your connection
(including the connection string - you can replace the username and
password
with xxxx if you aren't using integrated authentication to connect) and
the
code used to create and open the recordset. If you're dealing with a lot
of
user inputs and a long sql statement, you can snip that out because it
probably isn't relevant.

Bob Barrows

Johnfli wrote:
The response.write on teh cursortype came out as 0
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Johnfli wrote:
ADODB.Recordset error '800a0cb3'
Current Recordset does not support bookmarks. This may be a
limitation of the provider or of the selected cursortype.

I am moving my webserver from NT4 using SQL to win2003 using SQL
2003

No such thing. Do you mean SQL 2000 or SQL 2005?
I get the above error when my asp page does teh line:

Rs.absolutepage = intCurrentPage
I tested teh value of intCurrent page and teh value is 1.
Any ideas? The .asp Page works perfectly fine on teh old machine.

Well, you probably have a different version of ADO (MDAC) on the new
machine whose OLE DB provider is more strict about the cursor types
that support bookmarks.

1. Do you really need to support AbsolutePage? If you are using a
recordset for paging, you may want to consider one of the more
efficient methods talked about in this article:
http://www.aspfaq.com/show.asp?id=2120

2. If you are really married to utilizing the absolutepage property
this way, we are going to need more information:
-what provder are you using?
-what cursortype are you requesting for the recordset?
-what cursortype are you actually getting? (do a response.write
rs.cursortype after opening the recordset)

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so
I don't check it very often. If you must reply off-line, then remove
the "NO SPAM"


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

May 5 '06 #6
Johnfli wrote:
I am useing teh SQL that is on my SBS 2003 box, so I magine it is SQL
2000 :-)
"magine"? The version is extremely relevant to this issue. The version of
SQL Server does not depend on the box on which it is running. Do you have
Query Analyzer (part of the SQL Server client tools)? If so, run this sql
statement:
SELECT 'SQL Server '
+ CAST(SERVERPROPERTY('productversion') AS VARCHAR) + ' - '
+ CAST(SERVERPROPERTY('productlevel') AS VARCHAR) + ' ('
+ CAST(SERVERPROPERTY('edition') AS VARCHAR) + ')'
If not, open a recordset on it in an asp page and look at the result.
As far as needing to use absolute page, it is teh only item I
know how to use. I am not a web creater full time. I just support
what we have and create new when needed.
OK, I've had experience with wearing several hats, so i know what you're
going through.
IF there is a better way,
I am more than happy to do it that way.
Well, I pointed you at an article that showed a few better ways. the rest is
up to you :-)
Here is the code you requested.:

objConn.Open "Provider=SQLOLEDB.1;Password=xxxxx;Persist Security
Info=True;User ID=xxxx;Initial Catalog=TTSI;Data Source=MAILSVR"
<snip>

rsFBills.Open strFBSQL, objConn, 3,3
<snip> response.write rsFBills.cursortype

OK, so you requested a static cursor (3=adOpenStatic), and according to your
last post, you actually got a forward-only cursor. I have no explanation for
this behavior if you are using SQL 2000. It should work as you've written
it. If you actually have SQL 2005, then there may be an issue with the
SQLOLEDB provider. You may have better luck with the new SQLNCLI provider.
here is an example adapted from SQL BOL:
con.ConnectionString = "Provider=SQLNCLI;" _
& "Server = MAILSVR ;" _
& "Database=TTSI;" _
& "User ID=xxxx;" _
& "DataTypeCompatibility=80;" _
& "Password=xxxxx;"

Of course, regardless of the version, you can force ADO to construct a
static cursor by specifying a client-side cursor:

set rsFBills=CreateObject("adodb.recordset")
rsFBills.cursorlocation = 3 ' adUseClient
rsFBills.Open strFBSQL, objConn, 3,3,1

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
May 5 '06 #7
It replied with : SQL Server 8.00.760 - SP3 (Standard Edition)

I haven't had a chance to go through and read the articls you suggested, but
I plan to.

I thank you for your assistance so far. I will dive back into this again on
Monday.
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:OG**************@TK2MSFTNGP05.phx.gbl...
Johnfli wrote:
I am useing teh SQL that is on my SBS 2003 box, so I magine it is SQL
2000

:-)
"magine"? The version is extremely relevant to this issue. The version of
SQL Server does not depend on the box on which it is running. Do you have
Query Analyzer (part of the SQL Server client tools)? If so, run this sql
statement:
SELECT 'SQL Server '
+ CAST(SERVERPROPERTY('productversion') AS VARCHAR) + ' - '
+ CAST(SERVERPROPERTY('productlevel') AS VARCHAR) + ' ('
+ CAST(SERVERPROPERTY('edition') AS VARCHAR) + ')'
If not, open a recordset on it in an asp page and look at the result.
As far as needing to use absolute page, it is teh only item I
know how to use. I am not a web creater full time. I just support
what we have and create new when needed.


OK, I've had experience with wearing several hats, so i know what you're
going through.
IF there is a better way,
I am more than happy to do it that way.


Well, I pointed you at an article that showed a few better ways. the rest
is
up to you :-)
Here is the code you requested.:

objConn.Open "Provider=SQLOLEDB.1;Password=xxxxx;Persist Security
Info=True;User ID=xxxx;Initial Catalog=TTSI;Data Source=MAILSVR"

<snip>


rsFBills.Open strFBSQL, objConn, 3,3

<snip>
response.write rsFBills.cursortype

OK, so you requested a static cursor (3=adOpenStatic), and according to
your
last post, you actually got a forward-only cursor. I have no explanation
for
this behavior if you are using SQL 2000. It should work as you've written
it. If you actually have SQL 2005, then there may be an issue with the
SQLOLEDB provider. You may have better luck with the new SQLNCLI provider.
here is an example adapted from SQL BOL:
con.ConnectionString = "Provider=SQLNCLI;" _
& "Server = MAILSVR ;" _
& "Database=TTSI;" _
& "User ID=xxxx;" _
& "DataTypeCompatibility=80;" _
& "Password=xxxxx;"

Of course, regardless of the version, you can force ADO to construct a
static cursor by specifying a client-side cursor:

set rsFBills=CreateObject("adodb.recordset")
rsFBills.cursorlocation = 3 ' adUseClient
rsFBills.Open strFBSQL, objConn, 3,3,1

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

May 5 '06 #8
Johnfli wrote:
It replied with : SQL Server 8.00.760 - SP3 (Standard Edition)

OK, this is SQL 2000 with SP3. Are you aware that SP4 has been released? It
fixes some problems invoving interactions with W2003. I highly recommend you
download and apply that service pack.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
May 6 '06 #9
YIkes!!!
OK, I will download it right now.
Thank you again for your help
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Johnfli wrote:
It replied with : SQL Server 8.00.760 - SP3 (Standard Edition)

OK, this is SQL 2000 with SP3. Are you aware that SP4 has been released?
It fixes some problems invoving interactions with W2003. I highly
recommend you download and apply that service pack.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

May 8 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Zlatko Matić | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the...
0
by: zhaopzhi | last post by:
The Bookmarks of VC6.0 become abnormal ! For example ,add the bookmark "1111" successfully ,but can't add the bookmark "11"! Why??? Did you encounter this Who can help me? Thanks!
2
by: barret bonden | last post by:
(closest newsgroup I could find) Error Type: ADODB.Recordset (0x800A0CB3) Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype....
5
by: Hexman | last post by:
I've come up with an error which the solution eludes me. I get the error: >An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in HRTest.exe > >Additional...
8
by: jamesnkk | last post by:
I got this Run-time error 3251 Current Recrdset does not support updating. This may be limation of the provider, or of the selected locktype. Dim red1 As New ADODB.Recordset Dim strmess As...
3
by: mark_aok | last post by:
Hi all, All I am trying to do is open a table, edit it, and then close it. But I am having the strangest error. Here is my code Dim i as integer Dim rs as adodb.recordset Set rs = new...
9
by: BlackMustard | last post by:
Hi, I get the following error on the last line: Run-time error '3251': Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype. ...
3
by: aleseus | last post by:
New to the forum, so thanks for having me. I'm submitting a form, and attempting to save it to a local copy of an ACCESS 2007 database. When I am submitting the form, I get the following error: ...
2
by: rashmi wadhwa | last post by:
<% dim conn,rs set conn=Server.createobject("ADODB.Connection") set rs=Server.createobject("ADODB.RecordSet") conn.Open "Provider=SQLOLEDB;Persist Security Info=False;User Id=sa;Initial...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.