List All Views in SQL Server
Hello to everyone, In SQL Server, in some cases, you may need to list all views. You can easily do this with the help of the code below. SELECT SCHEMA_NAME(schema_id) AS schema_name, name AS view_name, OBJECTPROPERTYEX(object_id, ‘IsIndexed’) AS IsIndexed, OBJECTPROPERTYEX(object_id, ‘IsIndexable’) AS IsIndexable FROM sys.views; When you run the above...