select rowcnt from sysindexes where id=object_id('表名')select rowcnt from sysindexes where id=object_id('表名') and indid=1