How do I list the available tables in a database I'm
querying?

Answer Posted / sanjeev kumar

First Method:

select table_name from information_schema.tables


Second Method:

Select Name from sysobjects where xtype='u'

Note: here 'u' means user created

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between uniqe index and uniqe constraint?

718


What is pessimistic concurrency?

709


What is self contained multi valued query?

741


How to list all schemas in a database?

780


Mention the differences between local and global temporary tables.

746






What are the different types of locks in the database?

649


How to delete a login name in ms sql server?

706


Explain following error properties?

731


What is best institute to Learn DotNET And SQL in chennai?

1899


what are the new features introduced in sql server 2000? : Sql server database administration

697


explain how to create a new schema in a database? : Sql server database administration

782


How do you delete duplicate records in sql server?

723


Explain temporary table vs table variable by using cursor alternative?

718


You want to implement the one-to-one relationship while designing tables. How would you do it?

719


Why I am getting this error when renaming a database in ms sql server?

731