17.07.2015 Views

Download eBook (PDF) - Red Gate Software

Download eBook (PDF) - Red Gate Software

Download eBook (PDF) - Red Gate Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5 – Cell-Level Encryptionthat is a member of the Sensitive_low database role, as shown inListing 5-15.USE HomeLending;GO-- execute as a user who is a member of Sensitive_high roleEXECUTE AS USER = 'WOLFBA';GOSELECT * FROM dbo.vwBorrower_Identification;GOREVERT;GO-- execute as a user who is a member of Sensitive_medium roleEXECUTE AS USER = 'KELLEYWB';GOSELECT * FROM dbo.vwBorrower_Identification;GOREVERT;GO-- execute as a user who is a member of Sensitive_low roleEXECUTE AS USER = 'JONESBF';GOSELECT * FROM dbo.vwBorrower_Identification;GOREVERT;GOListing 5-15: Verification of permissions to vwBorrower_Identification.The result of this verification will reflect that rows were returned for thequeries from the Sensitive_high and Sensitive_medium members; butsince permissions did not exist for the Sensitive_low member the actualrows will not be returned. Instead the following will appear:(180593 row(s) affected)(180593 row(s) affected)Msg 229, Level 14, State 5, Line 1The SELECT permission was denied on the object'vwBorrower_Identification', database 'HomeLending',schema 'dbo'.The permissions set for this view are not to be confused with the permissionsset to the keys that are used to encrypt and decrypt. These permissions arereflected through the actual results that come from the execution of this view.121

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!