Microsoft® SQL Server® 2012 Bible
867 Chapter 35: Row-Level Security 35 EXEC pSecurity_Assign @PersonCode = '118', @AddressCode = '5', @SecurityLevel = 5; Result: ...
868 Part VI: Securing Your SQL Server (Jose) Server: Msg 50000, Level 15, State 1, Procedure pSecurity_Assign, Line 30 Address: ...
869 Chapter 35: Row-Level Security 35 UPDATE dbo.Security SET SecurityLevel = @SecurityLevel WHERE PersonID = @PersonID AND Pers ...
870 Part VI: Securing Your SQL Server (Jose) --------------- --------------- ------------- 120 1 3 120 2 1 Checking Permissions ...
871 Chapter 35: Row-Level Security 35 different values. Use the p_Security_Fetch procedure to determine possible parameters. The ...
872 Part VI: Securing Your SQL Server (Jose) RETURN @Approved; END; The next code fragment demonstrates how to call the function ...
873 Chapter 35: Row-Level Security 35 INSERT dbo.PersonLogin (PersonID, NTLogin) SELECT BusinessEntityID, 'SHARK\David' FROM Per ...
874 Part VI: Securing Your SQL Server (Jose) IF dbo.fSecurityCheckNT('2', 3) = 0 BEGIN; RAISERROR('Security Violation', 16,1); R ...
875 Chapter 35: Row-Level Security 35 Summary SQL Server has a solid reputation for security, but it lacks row-based security. I ...
c35.indd 876c35.indd 876 7/31/2012 9:59:41 AM7/31/2012 9:59:41 AM http://www.it-ebooks.info ...
Part VII Monitoring and Auditing IN THIS PART Chapter 36 Creating Triggers Chapter 37 Performance Monitor and PAL Chapter 38 Usi ...
c36.indd 878c36.indd 878 7/31/2012 10:03:06 AM7/31/2012 10:03:06 AM http://www.it-ebooks.info ...
879 CHAPTER 36 Creating Triggers IN THIS CHAPTER Creating Instead of and After Triggers Using the Transaction’s Data Within the ...
880 Part VII: Monitoring and Auditing Best Practice For data integrity, sometimes a trigger is the best solution, but be aware o ...
881 Chapter 36: Creating Triggers 36 Primary-key constraint. Check constraints. Foreign-key constraints. DML execution and upda ...
882 Part VII: Monitoring and Auditing FIGURE 36-1 Object Explorer lists all triggers for any table and may be used to modify the ...
883 Chapter 36: Creating Triggers 36 The following AFTER trigger simply prints 'In the After Trigger' when the trigger executes: ...
884 Part VII: Monitoring and Auditing The following code creates a test INSTEAD OF trigger and then attempts to INSERT a row: CR ...
885 Chapter 36: Creating Triggers 36 ■ (^) CREATE, ALTER, or DROP database ■ RECONFIGURE ■ (^) RESTORE database or log Disabling ...
886 Part VII: Monitoring and Auditing WHEN 1 THEN 'disabled' END AS status FROM sys.triggers Tr JOIN sys.objects Ob ON Tr.parent ...
«
41
42
43
44
45
46
47
48
49
50
»
Free download pdf