Hi all I need your help for creating some SQL query that returns the names of all databases that have a given table name.
Ex. I'd like to run this query against the master database and search for all databases that have a table called "customers".
Is it possible to do this, if yes how?
Thanks in advance
Software/Hardware used:
ASKED:
March 20, 2009 5:38 AM
UPDATED:
March 20, 2009 10:28 PM
You can use undocumented SP_MSFOREACHDB stored proc. :