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: )

451 reads

Blogs

Running SQL Server containers as non-root

By

Recently I noticed that Microsoft uploaded a new dockerfile to the mssql-docker repository on...

Interview with Greg Low

By

This is the sixth interview we have done. This time our guest is Greg...

Azure SQL Database Types

By

I want to do a quick summary post of the many different types of...

Read the latest Blogs

Forums

Is Data the Future of the Vibrant Web?

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Is Data the Future of...

Database in Recovery Pending state

By bobba

Good Morning, We had an issue yesterday where SQL Alerts were generated from one...

Import data from Kafka

By christian_t

Hi there, I am looking for a way to import kafka event data into...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers