C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Trainings
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
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 along with exposed columns
WhatsApp
Karthikeyan Anbarasan
14y
2.9
k
0
0
25
Blog
This blog show how to query the lists in the current database along with the columns exposed
Example:
SELECT vs.name ViewName, cs.name ColumnName
FROM sys.columns cs INNER JOIN sys.views vs ON cs.object_id = vs.object_id
ORDER BY vs.name, cs.name
People also reading
Membership not found