Article View: borland.public.cppbuilder.database.ado
Article #2064Re: Performance problems when insertings data in a Access-DB
From: Viatcheslav V. Vassiliev
Date: Sat, 29 Nov 2003 18:21
Date: Sat, 29 Nov 2003 18:21
32 lines
2205 bytes
2205 bytes
Use server-side cursor - CursorLocation = clUseServer and TableDirect = true. Call DisableControls()\EnableControls() even if you have no controls attached. If you need extreme speed, try OLEDB Direct at http://www.oledbdirect.com //------------------------------------------ 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) "Palmetzhofer Dietmar" <dietmar.palmetzhofer@boku.ac.at> �������/�������� � �������� ���������: news:3fc8a70e@newsgroups.borland.com... > I have to insert (or update) lots of datasets in a Access-2000 DB, and this > takes a LOT of time. I am doing this by using > TTable1->Append(); > // set the fieldvalues > TTable1->Post(); > in a loop. Does anyone know if there is a possibility to use a batch-job for > this (i.e. inserting the records in a buffer and posting them in one step)? > > Can somebody explain to me, what the different Execute-Options mean? The > explanation in the helpfile is not very helpfull for me ... > > Thank, > Didi > >
Technical Details
Message-ID:
<3fc9b250@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fc8a70e@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,debaddcdb1259366 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-11-30 01:08:51 PST From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3fc8a70e@newsgroups.borland.com> Subject: Re: Performance problems when insertings data in a Access-DB Date: Sat, 29 Nov 2003 21:21:03 +0300 Lines: 35 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: <3fc9b250@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1070182992 213.234.218.42 (30 Nov 2003 01:03:12 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail