How to make an updatable view in TSQL. Please provide simple examples that I can base my solution on.
Lately I was helping my friend with TSQL, and he asked me about updatable views. I thought it will be a good idea to leave my solution here for the future as a quick lookup.
For a good reference please take a look at msdn.
I am providing a very basic working example.
Since table and the view are fullfiling the msdn requierments (lookup), I am able to do the following on the view:
Important: Bulk insert is allowed as well.
Good luck with programming.