Forum Discussion

vsslasd's avatar
vsslasd
Copper Contributor
Apr 10, 2024
Solved

How to find the number of times a view was used within SQL Server

We are doing housekeeping in SQL Server and wanted to remove views that are no longer being used or needed. 

To ascertain this, we wanted to assess the frequency of various view usage within select statements, stored procedures, etc. and hopefully their dates and counts of usage for a list of views

 

Then we will remove those that aren't being used. 

 

What's the best way to do this?

 

Thank you

Resources