Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: SQL-Server
Hi Friend,
How to display all the tables in the database..Advance Thanks..
Posted 5-Nov-12 22:04pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

hello friend,
 
select * from sys.tables
 
hope this will help you
  Permalink  
v3
Comments
damodara naidu betha at 7-Nov-12 0:25am
   
this works only in SQL server. But the answer is correct. My 5+
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Use :
select * from INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE'
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

can we find the user name and time of change in table
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 430
1 Gihan Liyanage 347
2 ClimerChinna 222
3 vikinghunter 176
4 OriginalGriff 151
0 Sergey Alexandrovich Kryukov 8,373
1 OriginalGriff 7,112
2 CPallini 2,598
3 Richard MacCutchan 2,025
4 Abhinav S 1,788


Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 6 Nov 2012
Copyright © CodeProject, 1999-2014
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