SQL Server: Can the same table exist in multiple schemas

前端 未结 5 1658
Happy的楠姐
Happy的楠姐 2021-02-20 05:26

I thought that the schemas are namespace instances and hence the same table created under 2 different schemas are 2 different objects from the perspective of the database. One o

5条回答
  •  误落风尘
    2021-02-20 05:41

    I guess that you are trying to solve an issue by dividing data with the same data-structure between different tenants. You don't want to use different databases to reduce costs.

    To my mind, it is better to use row-level security in this case. In this case, data are stored in one table, but one tenant can't access data that were created by another tenant.

    You could read more in the next article - Row-Level Security

提交回复
热议问题