Viewing 2 posts - 1 through 2 (of 2 total)
The ? is the table name
EXEC MSFOREACHTABLE 'SELECT COUNT(*) AS ''?'' FROM ?'
TABLENAME
COUNT
May 4, 2015 at 9:08 am
#1795378
as ? is your tablename you can use
sp_MSforeachtable 'SELECT COUNT(*) AS [?] FROM ?'
April 30, 2014 at 1:46 pm
#1710004