Introduction:
Here I will explain SQL server query to get list of all tables in database or get list of all the tables in SQL server 2008 database.
Here I will explain SQL server query to get list of all tables in database or get list of all the tables in SQL server 2008 database.
Description:
In previous articles
I explained can function return multiple values in sql, Query to get database size in SQL
Server,
Exception handling in SQL Server with try catch, SQL Query to get first & last day of month, difference b/w view and stored
procedure in sql and many articles relating to SQL
server. Now I will explain how to get all the tables in SQL
server 2008
database.
USE SampleDB
SELECT * FROM information_schema.tables
OR
USE SampleDB
SELECT * FROM SYS.tables
|
Once we run above query we will get output like as
shown below
Demo
If you enjoyed this post, please support the blog below. It's FREE! Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email. |
|||
|
|||
2 comments :
fine
hi mujhe pure database se searching karani hai aur use aspx page par show karani hai .please give me any idea
Note: Only a member of this blog may post a comment.