🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Too Slow

#337
From: Viatcheslav V. Vassiliev
Date: Wed, 09 Aug 2006 07:37
29 lines
2077 bytes
Prepared TADOCommand should faster for MS SQL Server. For MS Access 
ADOQuery->Inser()/Post() may be faster in some cases. For MS SQL Server the 
fastest method (> 100 000 rows per second on simple table without indexes) 
is bulk copy rowsets (IRowsetFastLoad interface), but it is low-level OLEDB 
interface and it is not available from 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)


"Cenk" <cenk1536@yahoo.com> �������/�������� � �������� ���������: 
news:44d90947@newsgroups.borland.com...
> Hi,
>
> i wanna know, which one is faster?
>
> ExecSQL() or the code segment below,
>
> ADOQuery1->Insert();
> ADOQuery1->FieldByName("id")->AsInteger = 2 ;
> ADOQuery1->FieldByName("Name")->AsString = "sms";
> ADOQuery1->Post();
>
> 
Technical Details
Message-ID: <44d990b9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44d8a854@newsgroups.borland.com> <44d90947@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,9e074baf94073a9a
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <44d8a854@newsgroups.borland.com> <44d90947@newsgroups.borland.com>
Subject: Re: Too Slow
Date: Wed, 9 Aug 2006 11:37:21 +0400
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Response
X-Antivirus: avast! (VPS 0632-0, 08.08.2006), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 85.93.138.132
Message-ID: <44d990b9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1155109049 85.93.138.132 (9 Aug 2006 00:37:29 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail