Article View: borland.public.cppbuilder.database.ado
Article #3557COUNT(*) problem
From: Robert Lancaster
Date: Thu, 01 Aug 2002 08:00
Date: Thu, 01 Aug 2002 08:00
11 lines
1332 bytes
1332 bytes
Greetings, I am using a Microsoft SQL Server 6.5 database. In my database there is a table with 2,700,000 rows. Doing a COUNT(*) on this table in Query Ananlyser takes 25 minutes. If I try and execute this query using a TADOQuery component the driver times out. Is there any quicker way of doing this or is there a quickewr way of getting the row count. Thanks, Robert Lancaster
Technical Details
Message-ID:
<3d48ebaa_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,d90ad75fb42042a7,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-08-01 01:16:18 PST From: "Robert Lancaster" <robert.lancaster@thales-geosolutions.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: COUNT(*) problem Date: Thu, 1 Aug 2002 10:00:59 +0200 Lines: 13 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 196.15.157.2 Message-ID: <3d48ebaa_2@dnews> X-Trace: dnews 1028189098 196.15.157.2 (1 Aug 2002 01:04:58 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail