Find the database by table name

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 […]

2 (1)

2007-04-26 (first published: )

456 reads

Blogs

The Diverse Data Platform–Dativerse.io

By

The other day I got a note from Ben Weissman the other day that...

Extended Events and Azure SQL Database

By

Knowledge of how your system behaves is vital to better control, maintain, and grow...

Daily Coping 19 Apr 2021

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Read the latest Blogs

Forums

Buy oxycontin 80m,xanax,Oxycodone,Ritalin,Diazepam etc WhatsApp:+1(312) 379-9621

By nicko22

We are most reliable and efficient suppliers/distributor of all kinds of commonly used pain...

upgrade path to SQL 2019

By sqlfriend

I read the upgrade path for standard edition to SQL server 2019, the oldest...

Profiler Trace

By sizal0234

Hi, I am aware of capturing the trace for a single user database by...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers