Since i am new with sql server, my question is
Can we update views?
Can we update real table data in views?
If you update a view you will actually be updating the underlying table. A view is nothing physical, just a representation of the data underneath it.
In most circumstances you can perform UPDATE statements via VIEWS as long as they're setup to cater for UPDATEs (you can read more about enabling views for UPDATES here: http://msdn.microsoft.com/en-us/library/25614805(v=vs.80).aspx ) but it's generally considered less-than-great practise to do so. It makes things become very convoluted so you'd have to have a good reason to be doing it that way.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With