SQL-How to list out all tables in SQL server database

To list out all tables in SQL server database using SQL query


SELECT TABLE_NAME FROM <databasename>.INFORMATION_SCHEMA.Tables WHERE TABLE_TYPE = 'BASE TABLE'

example using Northwind Database:

SELECT TABLE_NAME FROM Northwind.INFORMATION_SCHEMA.Tables WHERE TABLE_TYPE = 'BASE TABLE'




First
0 Komentar

ASP.NET - How To Display Animated .GIF On Postback

When designing an interactive web page, it is important for you to let the user know that  an action initiated by him/her is in progress.One...