SqlCommandBuilder() creates insert/update for underlying tables instead for a view
问题 I have two schemas, like this: Schema 'data' --> holds tables, and nobody has access to them from outside Schema 'ui' --> holds views which are accessibly from outside; the idea is that you can select/delete/update/insert on these views. Thus, I am doing ownership chaining. For example: create table data.tblTest (TestKey int not null primary key); create view ui.vwTest as select * from data.tblTest; Now, if I connect as a user with SQL Studio, everything is OK: select * from ui.vwTest; --