How to find a table in your database using SQL Server

Find where a table is stored in your databases using the below query. Same principle applies when looking for a column name.

Replace MytableName in the WHERE  clause withe the keyword you need.

Execute the query by pressing F5 or the Execute button.



SELECT AS table_name,
SCHEMA_NAME(schema_idAS schema_name, AS column_name
FROM sys.tables AS t
WHERE LIKE ‘%MytableName%’
ORDER BY schema_nametable_name;

One Comment

  • Port Hueneme

    November 10, 2014, 11:42 pm

    It’s actually a great and helpful piece of information. I’m satisfied that
    you shared this useful information with us. Please keep us informed like this.

    Thank you for sharing.

Leave a Reply

Your email address will not be published. Required fields are marked *

four × one =

Time limit is exhausted. Please reload the CAPTCHA.

Subscribe to our newsletter and stay up to date with:

  • Latest posts
  • News and Articles
  • Products, Promotions and Giveaways

Get our FREE step by step guide to Building SSRS reports 101

Hide me
Show me
Build an optin email list in WordPress [Free Software]