select o.name, rows from sysindexes i, sysobjects o where i.indid in (0,1) and o.id = i.id and o.xtype = 'U'
======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.