TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
SQL Server Transact Basic to Expert - Query to list the views in the database
Karthikeyan Anbarasan
Jun 09, 2011
2.8
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
SQL Server Transact Basic to Expert - Query to list the views in the database
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
Next Recommended Reading
SQL Server Transact Basic to Expert - View Collation Metadata (for database)