SQL SERVER – 2008 R2 List of All the Tables in the Database

Sometimes We Require to see all the tables in the database, This can be achieved very Easily By the code below:

use AdventureWorksDW2008R2
GO
Select *
from sys.tables

This will return all the tables in the database.

Reference : Dilip Kumar Jena ( https://sqlexplore.wordpress.com )

Advertisements

4 thoughts on “SQL SERVER – 2008 R2 List of All the Tables in the Database

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s