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

Explain how you can deploy an SSRS report?

112


What is 3nf normalization form?

659


How do I run a trace in sql server?

591


between cast and convert which function would you prefer and why?

644


What the different topologies in which replication can be configured?

632






What is user defined datatypes and when you should go for them?

674


How do I create a trace in sql server?

604


What is difference between stored procedure and user defined function?

633


Why do you want to join software field as you have done your BE in Electronics?

1786


What is difference between equi join and inner join?

555


How many files can a database contain in sql server?how many types of data files exists in sql server? How many of those files can exist for a single database?

742


What is proper subset of candidate key?

676


How to delete duplicate rows from table except one?

634


Can you explain the disadvantages/limitation of the cursor?

582


What is relationship? What number of sorts of relationship are there?

718