how can i find the table names

Reply

Join Date: Oct 2009
Posts: 1
Reputation: else_harpal is an unknown quantity at this point 
Solved Threads: 0
else_harpal else_harpal is offline Offline
Newbie Poster

how can i find the table names

 
-1
  #1
Oct 26th, 2009
how can i find the table names from Sql server. what r the statement.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 318
Reputation: Thirusha is an unknown quantity at this point 
Solved Threads: 51
Thirusha's Avatar
Thirusha Thirusha is offline Offline
Posting Whiz
 
1
  #2
Oct 28th, 2009
  1. USE DATABASE_NAME
  2.  
  3. SELECT TABLE_NAME
  4. FROM INFORMATION_SCHEMA.TABLES
Life... Is a Moment
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3,472
Reputation: sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of 
Solved Threads: 629
Sponsor
sknake's Avatar
sknake sknake is offline Offline
.NET Enthusiast
 
0
  #3
Oct 29th, 2009
I didn't know about INFORMATION_SCHEMA.Tables

I have used this in the past:
  1. SELECT name
  2. FROM sysobjects
  3. WHERE Type = 'u'
Scott Knake
Custom Software Development
Apex Software, Inc.
Reply With Quote Quick reply to this message  
Reply

Message:




Views: 385 | Replies: 2
Thread Tools Search this Thread



Tag cloud for MS SQL
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC