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 ...