SELECT [rows] FROM sysindexes WHERE id = OBJECT_ID('dbo.tableName') AND indid < 2 --instate of SELECT COUNT(*) FROM tablename
SELECT COUNT(*) FROM tablename where [EntryDate] between ('10/10/2013') and ('01/01/2014')
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)