Search object in all databases


/ Published in: SQL
Save to your folder(s)

Place you object name here must be replaced with your object name ;)


Copy this code and paste it in your HTML
  1. EXEC master..sp_MSforeachdb 'if exists(select id from ?.dbo.sysobjects where name =''Place you object name here !'') print ''?'''

Report this snippet


Comments


You need to login to view comments.