Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

How to check if a view is updatable or not

$
0
0

What is a good way to find out if a view is updatable or not?

The following options I know but are not useful for me:

- try a update / insert statement: because I check all views existing in a unknown database

- look for check_option: there are updatable views with check off

- compare of create / modify date: modify date is also modified if an index is rebuild or if the view is changed even if it is not updateable  - not really sure about it, but I think so

In sys.views I have not found a column with the information I ma looking for. I thought also about OBJECTPROPERTY, but I also have found nothing. Perhaps I have only not seen it ...


Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>