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

Answer Posted / guest

You can get a list of tables in a database by calling the
INFORMATION_SCHEMA.Tables view like this:

SELECT * FROM information_schema.tables

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why truncate is ddl command?

611


What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure?

650


How can we get count of the number of records in a table?

614


How you can move data or databases between servers and databases in sql server?

656


What is the security principal at the database level that represents your session?

630






Explain alternate key, candidate key and composite key in sql server?

582


Can We Use Data-grids For Our Report In Ssrs?

153


Why variables called the most powerful component of ssis?

692


as a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this? : Sql server administration

619


Do you know the capabilities of cursors?

636


Do you know nested transaction?

606


What is subquery explain with example?

706


Tell me in brief how sql server enhances scalability of the database system?

613


Can we join two tables without primary key?

701


Can you change the data type of a column in a table after the table has been created? If so, which command would you use?

718