Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Other SQL Server Topics (2005)
 How to select Table names in MS SQL

Author  Topic 

chandralvsrr
Starting Member

7 Posts

Posted - 2011-08-10 : 09:43:35
Hi

How to select table names in SQL Server 2005?

LVSR Ravichandra

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2011-08-10 : 09:48:10
SELECT name FROM sys.tables
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-08-10 : 09:48:14
[code]
SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE'
[/code]

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

chandralvsrr
Starting Member

7 Posts

Posted - 2011-08-10 : 09:50:01
Got it Thanks Russel

LVSR Ravichandra
Go to Top of Page

chandralvsrr
Starting Member

7 Posts

Posted - 2011-08-10 : 09:50:05
Got it Thanks Russel

LVSR Ravichandra
Go to Top of Page

chandralvsrr
Starting Member

7 Posts

Posted - 2011-08-10 : 09:50:08
Got it Thanks Russel

LVSR Ravichandra
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2011-08-10 : 09:55:01
EXEC sp_tables

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -