这一条语句:string sqlStr = @"SELECT a.name, b.rows
FROM sysobjects AS a INNER JOIN
sysindexes AS b ON a.id = b.id
WHERE (a.type = 'u') AND (b.indid IN (0, 1)) AND rows > av
ORDER BY b.rows DESC";
改为:
string sqlStr = @"SELECT a.name, b.rows
FROM sysobjects AS a INNER JOIN
sysindexes AS b ON a.id = b.id
WHERE (a.type = 'u') AND (b.indid IN (0, 1)) AND rows > " + av +
" ORDER BY b.rows DESC";
这样试一下