Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
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
13y
2.8
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
SQL Server Transact Basic to Expert - Query to list the views in the database along with exposed columns
Up Next
SQL Server Transact Basic to Expert - Select Query with Column Alias
Ebook Download
View all
Basics of SQL Server
Read by 1.5k people
Download Now!
Learn
View all
Membership not found