Results 1 to 9 of 9
  1. #1
    manik's Avatar
    manik is online now Om Shanti!
    Join Date
    Apr 2008
    Location
    Boston, USA
    Posts
    13,175
    Thanks
    744
    Thanked 699 Times in 550 Posts
    Blog Entries
    4
    Feedback Score
    4 (100%)

    Default How to Get Table List - MS SQL

    How to Get Table List - MS SQL
    Very simple. On management studio run this query.



    Code:
    select * FROM  INFORMATION_SCHEMA.TABLES
    Free Classified Ads & BUSINESS/PROFESSIONAL SOCIAL NETWORK


  2. #2
    dhiraj is offline Junior
    Join Date
    Oct 2010
    Posts
    221
    Thanks
    0
    Thanked 1 Time in 1 Post
    Feedback Score
    0

  3. #3
    Join Date
    Nov 2010
    Location
    Delhi
    Posts
    103
    Thanks
    0
    Thanked 4 Times in 4 Posts
    Feedback Score
    0

    Default

    thank you that you shared the your Experience..

  4. #4
    jeffrey78's Avatar
    jeffrey78 is offline Freshman
    Join Date
    Oct 2010
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    thanks a lot

  5. #5
    Hocker is offline Freshman
    Join Date
    Dec 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    Hi thank for sharing....
    sp_tables returns a list of tables and views that can be queried in a selected database. The basic usage is as follows:
    sp_tables [ [ @table_name = ] 'name' ]
    [ , [ @table_owner = ] 'owner' ]
    [ , [ @table_qualifier = ] 'qualifier' ]
    [ , [ @table_type = ] "type" ]
    [ , [@fUsePattern = ] 'fUsePattern'];

  6. #6
    mandy is offline Junior
    Join Date
    Apr 2011
    Posts
    332
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Feedback Score
    0

    Default

    In my point of view you can use the following SQL table:
    SELECT name [Table Name]

    FROM sysobjects

    WHERE xtype = 'YOU'

  7. #7
    somkant is offline Senior
    Join Date
    Aug 2011
    Posts
    671
    Thanks
    0
    Thanked 7 Times in 7 Posts
    Feedback Score
    0

  8. #8
    naoki is offline Senior
    Join Date
    May 2011
    Posts
    630
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Feedback Score
    0

    Default

    thanks.. but is there a way to do that in codes..?

  9. #9
    jassmee is offline Sophomore
    Join Date
    Mar 2012
    Posts
    144
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    I think you may used the query in mysql $sql = "select * from table name"; mysql_query is used to run the query..

Similar Threads

  1. Transferring / Editting a Table
    By Amirmullick3 in forum Databases
    Replies: 6
    Last Post: 04-05-2011, 01:41 AM
  2. Replies: 2
    Last Post: 07-28-2010, 08:07 PM
  3. Cfquery table group by
    By Abina in forum ColdFusion
    Replies: 1
    Last Post: 01-31-2010, 11:17 AM
  4. Why using table is bad
    By mastermind in forum HTML / DHTML
    Replies: 3
    Last Post: 12-11-2009, 03:52 AM
  5. ASCII Table
    By Amit.Verma in forum Web Development - Programming & Coding
    Replies: 4
    Last Post: 08-04-2008, 10:47 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Partners: BOSTON WEB DEVELOPER, LLC   |   WEBCOSMO CLASSIFIEDS