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

VIEW WITH CHECK OPTION FAILURE DOESNT ROLLBACK CHECKIDENT

$
0
0

Hi,

Using Views with CHECK OPTION to enfore multi-tenancy in a project. I noticed while testing that if I try to insert an "illegal" record into a view and the WITH CHECK OPTION catches it as expected, the CHECKIDENT for the underlying table still gets incremented. I guess I expected it would have been rolled back like the insert.

Is this expected?


Viewing all articles
Browse latest Browse all 15889

Trending Articles



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