Grant Select on a view not base table when base table is in a different database

前端 未结 10 1893
广开言路
广开言路 2020-11-30 07:28

I have a view which is selecting rows from a table in a different database. I\'d like to grant select access to the view, but not direct access to the base table. The view

10条回答
  •  离开以前
    2020-11-30 08:29

    I tried this in one of my databases.

    To get it to work, the user had to be added to the database housing the actual data. No rights were needed, just access.

    Have you considered keeping the view in the database it references? Re usability and all if its benefits could follow.

提交回复
热议问题