SQL Hints
Friday, February 11, 2011
How to Search the Table in all the Database
----How to Search the Table in all the Database
sp_msforeachdb "SELECT '?' DatabaseName, Name FROM ?.sys.Tables WHERE Name LIKE '%data%'"
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment