Re: faster count(*) or alternative




"Erland Sommarskog" <esquel@xxxxxxxxxxxxx> wrote in message
news:Xns98E480B95D736Yazorman@xxxxxxxxxxxx
C10B (tswalton@xxxxxxxxx) writes:
greg - I don't know what a DDL is

DDL = Data Definition Language. That is, CREATE TABLE and CREATE INDEX and
the like.

If I had had a penny for every time someone says DDL in answer, without
the
person asking having no idea what it means, I would be a rich man now.

russ - thanks

What Russ proposed is the same idea that I proposed, but rather than
relying
SQL Server updating an indexed view, he suggested a separate table that
you
update through a trigger.


Indexed view is probably best, I just like having more control.


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx


.