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

452 reads

Blogs

Bring Your Own Key to Azure SQL Database Managed Instance TDE

By

Last year Azure SQL Database Managed Instance saw the introduction of bring your own...

CRM Data Source Connection Error

By

This article takes us to the edge with a couple of CRM related errors...

SSAS Tabular – Process Add memory consumption

By

For me it’s a bit surprising how little information can be found regarding the...

Read the latest Blogs

Forums

Migration sandbox

By tcroninlifepoint

Inherited about 190 2008 servers I need to migrate.  Was going to build 2014/16...

Query Help Needed

By rjjh78

To all: I am trying to create a query that will be able to...

Linked server and SQL Server 2019

By Johan_1975

Hi, I searched the infomation but I didn't found it so... Is Linked Server...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers