Maybe you easily said how to I provide table names and row counts?
Pseudo SQL:
for "select tablename from system.Tables" into :tablename
execute "select count(*) from ? into ?" using :tablename, :count
return row(:tablename, :count)
end for
Can you tell me show me this script in T-SQL?
If you’re on SQL Server 2005 or newer (you unfortunately didn’t specify which version of SQL Server you’re using), this query should give you that information:
This produces an output something like (this is from
AdventureWorks):