How to List all Tables in a SQL Server Database

To list all tables in a SQL Server Database, run the following code that checks the INFORMATION_SCHEMA.TABLES view:

USE Database_Name
SELECT * FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE ='BASE TABLE'

list_all_tables_in_a_database

Read related blog post:
How to check if the Table exists in a SQL Server Database

If the post helped you, please share it:
Pin It

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">