What are the pros/cons of using a synonym vs. a view?

后端 未结 7 1819
余生分开走
余生分开走 2020-12-05 06:53

This is a generic database design question - What are the benefits of using a synonym in database development, over a simple view? What are the main considerations to keep

7条回答
  •  萌比男神i
    2020-12-05 07:05

    The column projection from a view is established at create time. Therefore if you add a column to the underlying view it will not be exposed until you alter the view. Not so with a synonym. Think of it as a simple name replace in your tsql, usually to hide complexity.

提交回复
热议问题