Click here to Skip to main content
12,501,830 members (51,908 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: SQL Server
how can i find table name in purticular database
Posted 13-Aug-14 1:47am
Comments
Rohan Leuva 13-Aug-14 7:49am
   
use '+' icon against the list item named 'Tables' and go through the items you see there.
Sibeesh KV 23-Sep-14 4:57am
   
:)
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

select * from INFORMATION_SCHEMA.TABLES
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Hi,

In addition to above....


USE Your_Database
GO
SELECT *
FROM sys.Tables
GO


Hope this will help you.


Cheers
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

SELECT * FROM sys.tables
show all table

SELECT * FROM sys.objects WHERE type='u'
give list of user defined table
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 4

Hello ,
Lot of ways are there.
You can use sys.tables which is system defined in sql server which lists only user defined tables.
ALternatively you can use INFORMATION_SCHEMA.TABLES.

There is also a stored procedure available sp_tables which list you the available tables in the database.

Hope it helps you .

Hapy Coding :-)
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 5

Select * from sysobjects where xtype='u'
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 6

SELECT *
FROM sys.Tables
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160919.1 | Last Updated 21 Aug 2014
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100