🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ADO, MS Access and MS SQL Server 2000

#1591
From: Viatcheslav V. Vassiliev
Date: Wed, 26 May 2004 19:01
54 lines
3358 bytes
TADODataSet should be used for queries that return rows. Affected rows for
such queries is usually unknown. On client-side cursor you may use
RecordCount, on server-side - traverse with Next() until Eof.

TADOCommand has RecordsAffected as one of parameters in Execute method.

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

"Arnie Mauer" <xxx@nowhere.net> �������/�������� � �������� ���������:
news:40b4e428$1@newsgroups.borland.com...
> A question along similar lines.  I wonder why TADOQuery has a RowsAffected
> property for UPDATE and DELETE but neither TADOCommand or TADODataSet
does?
>
> - Arnie
>
> "Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote in message
> news:40b4be84$1@newsgroups.borland.com...
> > TADOQuery was created as replacement for TQuery and has
properties/methods
> > similar to TQuery and TADODataSet - as component for ADO - for example,
> > property CommandText (WideString) instead of SQL (TStrings). TADOQuery
is
> > for recompiling applications from BDE to ADO with minimal changes, but
if
> > you start new project, TADODataSet is closer to ADO.
> >
> > //------------------------------------------
> > Regards,
> > Vassiliev V. V.
> > http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
> > ADO.Net
> > http://www.oledbdirect.com - The fastest way to access MS SQL Server,
> > MS Jet (Access) and Interbase (through OLEDB)
> >
> > "Simon Elliott" <Simon at ctsn.co.uk> �������/�������� � ��������
> ���������:
> > news:40b49888$1@newsgroups.borland.com...
> > > On 26/05/2004, Viatcheslav V. Vassiliev wrote:
> > > > You can use TADOConnection and TADOQuery (or better, TADODataSet).
> > >
> > > What are the advantages of using TADODataSet rather than TADOQuery?
> > > -- 
> > > Simon Elliott    http://www.ctsn.co.uk
> >
> >
>
>
Technical Details
Message-ID: <40b4e98a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.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: <40b3af1d$1@newsgroups.borland.com> <40b43aaf@newsgroups.borland.com> <40b45285$1@newsgroups.borland.com> <40b46792@newsgroups.borland.com> <40b46a56@newsgroups.borland.com> <40b472ea@newsgroups.borland.com> <40b49888$1@newsgroups.borland.com> <40b4be84$1@newsgroups.borland.com> <40b4e428$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,8abf2d740f25af17
X-Google-Attributes: gid10698b,public
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <40b3af1d$1@newsgroups.borland.com> <40b43aaf@newsgroups.borland.com> <40b45285$1@newsgroups.borland.com> <40b46792@newsgroups.borland.com> <40b46a56@newsgroups.borland.com> <40b472ea@newsgroups.borland.com> <40b49888$1@newsgroups.borland.com> <40b4be84$1@newsgroups.borland.com> <40b4e428$1@newsgroups.borland.com>
Subject: Re: ADO, MS Access and MS SQL Server 2000
Date: Wed, 26 May 2004 23:01:34 +0400
Lines: 56
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: <40b4e98a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1085598090 213.234.218.42 (26 May 2004 12:01:30 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.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