SQL Server : View permission to table
问题 Is it possible to grant a user access to a view but restrict the user from accessing the table the view selects from? CREATE TABLE [dbo].[tUsers]( [ID] [int] IDENTITY(1,1) NOT NULL, [Username] [nvarchar](50) NULL, [Password] [nvarchar](50) NULL, [TenantID] int ) ON [PRIMARY] CREATE VIEW [scmTenant1].[vUsers] AS SELECT ID, Username, Password FROM dbo.tUsers WHERE TenantID = 1 The SQL Server user account ( usrTenant1 ) has access to schema scmTenant1 but does not have access to the dbo schema.