Article View: borland.public.cppbuilder.database.ado
Article #2725Re: TADOConnection
From: Viatcheslav V. Vassiliev
Date: Mon, 14 Apr 2003 10:21
Date: Mon, 14 Apr 2003 10:21
38 lines
2468 bytes
2468 bytes
To make inserts faster, use server-side cursor and call DisableControls()/EnableControls() even if no controls are attached. 17 000 rows is not much (unless you have BLOBs or foreign keys or triggers). The fastest way to insert rows into MS SQL Server database is OLEDB Direct (http://www.oledbdirect.com) - look ($OLEDB Direct)\Examples\SQL Server\1000000 rows sample - it inserts 1 mln rows. ---------------------------------------------------------------- Regards, Viatcheslav V. Vassiliev http://www.oledbdirect.com The fastest way to access MS SQL Server, MS Jet (MS Access) and Interbase (through OLEDB) databases. "In�s Fern�ndez" <ifernandezmed@terra.es> �������/�������� � �������� ���������: news:3e9a6882@newsgroups.borland.com... > Hello! > I am using a TADOCommand component to insert records in a Table from an SQL > Server Database. > Each time I have to call that command about 17000 times to insert as many > records. > The process takes quite a long time, so I am looking for a way to make that > time shorter. > I have found that using a TADOConnection to connect to de Database it takes > twice the time it takes using the ConnectionString directly in the > TADOCommand component. Why? > Is there a way to solve this? I want to use the TADOConnection component > because I have many other ADO components that must connect to the same > Database. > > Thanks in advance: > > In�s Fern�ndez > >
Technical Details
Message-ID:
<3e9a8c36$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3e9a6882@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,4246570f02c5cb36 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-04-14 03:39:17 PST From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3e9a6882@newsgroups.borland.com> Subject: Re: TADOConnection Date: Mon, 14 Apr 2003 14:21:26 +0400 Lines: 40 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 213.247.201.57 Message-ID: <3e9a8c36$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1050315830 213.247.201.57 (14 Apr 2003 03:23:50 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail