Question : SQL Server updateusage

How do i run DBCC UPDATEUSAGE for particular databases only. i do not want master, tempdb and model in it.

i have
EXEC sp_msforeachdb 'DBCC UPDATEUSAGE(''?'')

and this does for all databases but need something that skips above three databases

Answer : SQL Server updateusage

EXEC sp_msforeachdb ' if ''?'' not in ( ''master'', ''msdb'', ''tempdb'')  DBCC UPDATEUSAGE(''?'') '
Random Solutions  
 
programming4us programming4us