sql server - SQL Performance/Advantages of selectin data from table and same data from View on same table -


why suggested select data view on particular table rather selecting directly table.

eg. have

select * table1 --not recommended  create view test (  select * table1  )    select * view - recommended. 

is beccause of locking issue or else (using mssql 2008 r2)

views recommended

  • hide underlying table structure i.e. have calculated columns or transformed ones etc.,
  • manage access @ granular level i.e. grant access columns in table

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -