goldwhispers
Programmer
I want to find if a table exists in all my databases on one server, is it possible to do this with one query? someone help.
thanks
thanks
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
exec sp_MSforeachdb 'if exists (select * from ?.dbo.sysobjects where name = ''YourTableName'') print ''Exists in ?'''