C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
SQL Server Transact Basic to Expert - Query to list the views in the database
WhatsApp
Karthikeyan Anbarasan
14y
2.9
k
0
0
25
Blog
This blog show how to query the database to see the list of views used with view names
Example:
SELECT s.name SchemaName, vs.name ViewName FROM sys.views vs
INNER JOIN
sys.schemas sc ON vs.schema_id = sc.schema_id
ORDER BY sc.name, vs.name
SQL Server Transact Basic to Expert - Query to list the views in the database
People also reading
Membership not found