USE MASTER
GO
EXEC master..sp_MSForeachDB '
USE [?]
IF ''?'' <> ''tempdb''
BEGIN
DBCC
CheckAlloc (''?'')
END'
GO
Scripts, Articles, Relevant for DBAs, Consultants, BI, Data Scientists and Developers
USE MASTER
GO
EXEC master..sp_MSForeachDB '
USE [?]
IF ''?'' <> ''tempdb''
BEGIN
DBCC
CheckAlloc (''?'')
END'
GO