数据不多时一般使用 select count(0) from T_Imei with (nolock)
上百万的用:select top 1 rowcnt from sysindexes where id=object_id('T_Imei')