SQL Server Run Prosedur di semua database
DECLARE @command varchar(1000)
SELECT @command = 'IF ''?'' NOT IN(''master'', ''model'', ''msdb'', ''tempdb'') BEGIN USE ? print DB_NAME() END'
EXEC sp_MSforeachdb @command
MzanziLegend