Purushottam Rathore
How to find All tables of the data base.
By Purushottam Rathore in .NET on Apr 03 2009
  • Shiv kumar
    Apr, 2014 21

    select * from sysobjects WHERE xtype='u' OR SELECT * FROM Sys.tables

    • 0
  • kanchan setia
    Jan, 2011 31

    use
    select * from tab;

    to see all the tables stored in the database.

    • 0
  • Himanshu Dubey
    May, 2009 5

    Hello ,

    Use the

     

    select * from table_name;

     

    to see full contents of the table.

    • 0
  • Manish Dwivedi
    Apr, 2009 7

    Hi

    By using this query u can get all tables.

    SELECT TABLE_NAME  FROM INFORMATION_SCHEMA.TABLES

    • 0
  • Nathan Anderson
    Apr, 2009 6

    If you are using SQL Server 2005 or 2008 there are new system views available in INFORMATION_SCHEMA. To retrieve all the tables: SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' The INFORMATION_SCHEMA views offer a lot more great database searching options. Check out the other query options here: http://msdn.microsoft.com/en-us/library/ms186778.aspx

    • 0
  • Bharat Joshi
    Apr, 2009 6

    In sql server

    Select * from sysobjects where type='U'

     

    In Oracle

    Select * from USER_TABLES

     

    • 0
  • Purushottam Rathore
    Apr, 2009 3

    USE databaseName
    GO
    SELECT * FROM sys.Tables
    GO

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS