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

RSS Icon Subscribe to comments

You need to login to post a comment.