Loop through all SQL tables
sp_MSforeachtable @command1="select '?' as name, count(*) from ?"
- This sp_MSforeachtable is an undocumented stored procedure.
- Does not support on Azure SQL.
sp_MSforeachtable @command1="select '?' as name, count(*) from ?"