Re: SELECT COUNT(*) returning wrong value
From: Tibor Karaszi (tibor_please.no.email_karaszi_at_hotmail.nomail.com)
Date: 08/26/04
- Next message: Dejan Sarka: "Re: Get all the logins"
- Previous message: Walter_in_sa: "Re: SQL DATABASE ACCESS"
- In reply to: Adam Machanic: "Re: SELECT COUNT(*) returning wrong value"
- Next in thread: David Gerard: "Re: SELECT COUNT(*) returning wrong value"
- Reply: David Gerard: "Re: SELECT COUNT(*) returning wrong value"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 26 Aug 2004 07:52:18 +0200
Also, might be worth forcing a table scan for the SELECT (*) query. Just to see if SQL Server picks an index
for the count where the index has some problems.
-- Tibor Karaszi, SQL Server MVP http://www.karaszi.com/sqlserver/default.asp http://www.solidqualitylearning.com/ "Adam Machanic" <amachanic@hotmail._removetoemail_.com> wrote in message news:u1lspTwiEHA.556@tk2msftngp13.phx.gbl... > Next step I might take is to create a new database (preferably on a > different server) and use DTS to copy those two tables over to it... Then > run the same queries and see what happens. If that doesn't work out, post > DDL (CREATE TABLE statements) and some sample data (INSERT statements) to > reproduce the problem so I can try it on my end. > > By the way, are you running the latest service pack? If not, try updating > that first. > > > "Stan Rozendal" <StanRozendal@discussions.microsoft.com> wrote in message > news:385793CF-A9E1-47CD-A290-C7F2C1B1D84A@microsoft.com... > > > > I tried the SELECT again but still getting the same results. > > > >
- Next message: Dejan Sarka: "Re: Get all the logins"
- Previous message: Walter_in_sa: "Re: SQL DATABASE ACCESS"
- In reply to: Adam Machanic: "Re: SELECT COUNT(*) returning wrong value"
- Next in thread: David Gerard: "Re: SELECT COUNT(*) returning wrong value"
- Reply: David Gerard: "Re: SELECT COUNT(*) returning wrong value"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|