Here's the scenario:
1. You have been given a script to run.
2. You do not know the database name.
3. You know which server.
Substitute the word "TABLENAME" with the table name in the script and run in query analyzer. This query will check every database on the server and return the name of the database with the requested table name.
2007-10-02 (first published: 2002-06-20)
15,451 reads