432 Part I EXAM PREPARATION continued was denied

432 Part I EXAM PREPARATION continued was denied access to the table (DBOPermsTable). Because the dbo owns both objects, as access moves from the view to the table, the permissions are not checked, and Mary has access to the data. However, if Mary attempts to access the table directly, the permissions are checked at the table, and she is denied access. The reasoning behind the ownership chain works like this: If I own a table and I own the view, then when I grant permissions to the view, I obviously want the user to have access to the table. By not granting specific permissions to the table, you also restrict access to the data because this data is accessible only through the view. Dealing with Broken Ownership Chains One problem that can arise when you are using views occurs when you have different owners for objects in your database. Whenever there is a change in ownership, the owner of each object has to grant permissions to the object. When the ownership of objects in a chain is changed, there is a break in ownership or you have a broken ownership chain. The following script creates tables and views for a database. It then applies permissions to the upper-layer objects. This script creates a broken ownership and illustrates the issues that you should be aware of with different object owners. CREATE TABLE dbo.DBOTable1 ( id int, name varchar(20) ) CREATE TABLE bob.BobTable1 ( id int, description .varchar(20) ) CREATE TABLE jane.JaneTable1 ( id int, address varchar(20) ) GO INSERT INTO dbo.DBOTable1 VALUES (1, Buddy ) INSERT INTO Jane.JaneTable1 VALUES (1, 123 Some Street ) INSERT INTO Bob.BobTable1 VALUES (1, What was his name? ) GO CREATE VIEW Jane.JaneView1 AS SELECT dbo.DBOTable1.id, name, address FROM dbo.DBOTable1 INNER JOIN Jane.JaneTable1 ON dbo.DBOTable1.id = Jane.JaneTable1.id GO CREATE VIEW Jane.JaneView2 AS SELECT id, description FROM Bob.BobTable1 GO

If you looking for unlimited one inclusive web hosting plan please check cheap web hosting website.

Comments are closed.