Viewing 2 posts - 1 through 2 (of 2 total)
Here's a version that'll run on one database and produce results for all databases (assuming they're setup as linked servers on the main db).
Could be further improved by putting the...
June 12, 2012 at 6:15 am
#1499736
Heya,
possibly a bit late, but if it's still of use. . .
Alter procedure tabproc
(
@tablename sysname
)
as
begin
EXEC('Select count(*) from ' + @tablename + ' where isactive = 0' )
End
Basically the code in...
December 20, 2010 at 11:50 am
#1264734