🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #2036

Re: Dataset does not support bookmarks... error

#2036
From: Viatcheslav V. Vassiliev
Date: Mon, 17 Nov 2003 16:47
44 lines
2452 bytes
No, it is your bug. Use CursorType = ctKeyset or CursorType = ctStatic. It
is faster to work with forward-only read-only recordsets and ADO/OLEDB
returns recordset with requested functionality. If you do not ask for
bookmarks, they are not available.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi + ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)



"Francesco" <.> ???????/???????? ? ???????? ?????????:
news:3fb8f987$1@newsgroups.borland.com...
>
>
> Hi, i've a problem with TADODataSet descendent components.
>
> scenario:
>
> - BCB5 PRO + ADO fully update
> - MSSQL Server 2000, sp3
>
> I have a TADOQuery component connected to sql server database, i set
> CursorLocation = clUseServer
> CursorType = ctDynamic
>
> then i execute a select command, and if to TADOQuery is attached a
> DBGrid component i've this error message:
>
>  "Dataset does not support bookmarks, which are required for
> multi-record data controls"
> I've noticed that if i change property CursorLocation = clUseClient all
> works fine.
>
> Is it a bug/limitation of ADO components that are not able to show few
> records in a DBGrid retrieving directly from server?? Becasuse in case
> of clUseClient as far as i understood it copies records in a local
> cache. Is there any way to solve this problem??
>
>
> Thanks in advance, Francesco
Technical Details
Message-ID: <3fb8fb8d@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fb8f987$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,408adaac6b71eb7d
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-11-17 09:10:02 PST
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3fb8f987$1@newsgroups.borland.com>
Subject: Re: Dataset does not support bookmarks... error
Date: Mon, 17 Nov 2003 19:47:10 +0300
Lines: 46
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 213.234.218.42
Message-ID: <3fb8fb8d@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1069087629 213.234.218.42 (17 Nov 2003 08:47:09 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail