2013-05-15 テーブルごとの行数を出す SQLServerの話。 userというテーブル名をもつテーブルを曖昧検索してそれぞれの行数を出すSQL。 select o.name, i.rows from sysindexes i, sysobjects o where o.xtype = 'U' and o.id = i.id and i.indid < 2 and o.name LIKE '%user%'