Home
> SQL Server Questions > difference between COUNT() and COUNT_BIG() – MSDN TSQL forum
difference between COUNT() and COUNT_BIG() – MSDN TSQL forum
–> Question:
What is the difference between COUNT() and COUNT_BIG() in SQL Server ?
–> Shaahs Answer:
COUNT() and COUNT_BIG() are similar in functionality, but COUNT() always returns INT and COUNT_BIG() returns BIG INT.
–> My Answer:
Also COUNT() can not be used while creating Indexed Views.
And COUNT_BIG() is a mandatory requirement to include in Indexed Views.
Categories: SQL Server Questions
COUNT_BIG, MSDN TSQL forum
Comments (0)
Trackbacks (0)
Leave a comment
Trackback