How can I get list of all tables in SQL Server database using query. My intention is to dynamically display this on a webpage.
A more generic way:
Select * From INFORMATION_SCHEMA.TABLES Where TABLE_TYPE = 'BASE TABLE'