SELECT rows FROM databaseName..sysindexes WHERE id = OBJECT_ID ('databaseName..tableName') AND indid < 2