Script to find views which has more than 16 columns for unique index/constraint ...for creation of indexed views

  • Hi, we are on SQL 2014...we have a bunch of views in a database where we are trying to find the views which have more than 16 columns max for unique index/constraint...this is needed so we can convert them to indexed views...any help is appreciated. Thanks!

  • Have a look at view INFORMATION.TABLES and INFORMATION_SCHEMA.COLUMNS - these should be able to give you what you need.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply