how can i find the table names from Sql server. what r the statement.

Recommended Answers

All 2 Replies

use DATABASE_NAME

SELECT TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES

I didn't know about INFORMATION_SCHEMA.Tables ;)

I have used this in the past:

Select name
From sysobjects
Where Type = 'u'
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.