Re: Performance using adOpenKeyset and adUseServer
From: William \(Bill\) Vaughn (billvaRemoveThis_at_nwlink.com)
Date: 07/08/04
- Previous message: Nicolas Tostin: "[OK] Re: CommandTimout doesn't seem to work with oracle"
- In reply to: Bernhard Geyer: "Performance using adOpenKeyset and adUseServer"
- Next in thread: Bernhard Geyer: "Re: Performance using adOpenKeyset and adUseServer"
- Reply: Bernhard Geyer: "Re: Performance using adOpenKeyset and adUseServer"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 8 Jul 2004 09:49:55 -0700
In the ODBC case, no cursor is being built. This command returns the first
few rows immediately and uses a stream to return the remaining rows. In the
ADO case, a server-side cursor is created along with support structures on
the client.
-- ____________________________________ William (Bill) Vaughn Author, Mentor, Consultant Microsoft MVP www.betav.com Please reply only to the newsgroup so that others can benefit. This posting is provided "AS IS" with no warranties, and confers no rights. __________________________________ "Bernhard Geyer" <Bernhard.Geyer@nospam.com> wrote in message news:e$KlFgOZEHA.3368@TK2MSFTNGP12.phx.gbl... > I'm trying to open a Recordset with adOpenKeyset and adUseServer (select * > from mytable) (I need adOpenKeyset, because I > bind the Recordset to a Grid using Delphi and dbGo-Wrapper around > ADO-Components). > > But with this settings (adOpenKeyset and adUseServer), the opening of the > recordset take a long time, when > the command is executed. > > When using ODBC (with BDE), this command opens very fast. > > > When profiling with SQL-Profiler, I found following difference. > > Opening with ODBC, only the Entry "select * from mytable" > > when opening with ADO, there is a curser open with "exec sp_cursoropen @P1 > output, N'select * from mytable', @P2 output, @P3 output, @P4 output ... > and this curser-opening takes a long time... > > Which settings allows me to open my table with Server-Curser and Bindability > to a grid? > > Thanks for any hints > > Bernhard > >
- Previous message: Nicolas Tostin: "[OK] Re: CommandTimout doesn't seem to work with oracle"
- In reply to: Bernhard Geyer: "Performance using adOpenKeyset and adUseServer"
- Next in thread: Bernhard Geyer: "Re: Performance using adOpenKeyset and adUseServer"
- Reply: Bernhard Geyer: "Re: Performance using adOpenKeyset and adUseServer"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|