DRAG DROP
You administer a Microsoft SQL Server 2012 server that has multiple databases.
You need to ensure that users are unable to create stored procedures that begin with sp_.
Which three actions should you perform in sequence? (To answer, move the appropriate
actions from the list of actions to the answer area and arrange them in the correct order.)
Explanation:
Reference: http://msdn.microsoft.com/en-us/library/bb510667.aspx
Policies are created and managed by using Management Studio. The process includes the
following steps:
1. Select a Policy-Based Management facet that contains the properties to be configured.
2. Define a condition that specifies the state of a management facet.
3. Define a policy that contains the condition, additional conditions that filter the target sets,
and the evaluation mode.
4. Check whether an instance of SQL Server is in compliance with the policy.
Evaluation modes There are four evaluation modes, three of which can be automated: On
demand. This mode evaluates the policy when directly specified by the user.
On change: prevent. This automated mode uses DDL triggers to prevent policy violations.
Important If the nested triggers server configuration option is disabled, On change: prevent
will not work correctly. Policy- Based Management relies on DDL triggers to detect and roll
back DDL operations that do not comply with policies that use this evaluation mode.
Removing the Policy-Based Management DDL triggers or disabling nest triggers, will cause
this evaluation mode to fail or perform unexpectedly.
On change: log only
This automated mode uses event notification to evaluate a policy when a relevant change is
made.
On schedule
This automated mode uses a SQL Server Agent job to periodically evaluate a policy.
Correct answer is : Box6 (NOT LIKE), then Box5 (On Change: prevent), then Box1 (Eable)
Agree
I Agree with above answer
Shouldnt it be “LIKE” then “PREVENT” then “ENABLE”
Cant see why it is evaluating “NOT LIKE” and then “PREVENT”. It needs to check for “LIKE” sp_ and
if so, “PREVENT” users…..
I agree
Sorry, I’ve just tested on SQL Server.
The corrent aswer is “NOT LIKE”, “prevent” and “enable”
LIKE,PREVENT,ENABLE if the correct answer. By executing 1) ‘NOT LIKE’—–>You deny sp_ as variable
2) Prevending anything else exept sp_ you deny everyting
3) Enable
I do agree with Edouard, dennis a.s.o.
The condition “NOT LIKE” should be fullfilled
@see http://www.mssqltips.com/sqlservertip/1492/using-policy-based-management-in-sql-server-2008/
http://blogs.msdn.com/b/sqlpbm/archive/2009/04/13/policy-evaluation-modes.aspx
NOT LIKE should be fullfilled ! Tested !
Steps:
Create the condition.
Create the Policy
Enable.
Which will mean:
Box 6
Box 5
Box 1
I Don’t know what you guys have tested but….
Condition should be “Like” (Box 7) since that is what you need to Prevent (Box 5). After that all you need is to enable (Box 1).
Agree with Donk. In other tests with the same question, like is the answer. It has to be. That’s what you’re filtering for. You’re trying to prevent the execution of procedures like sp[_]%
Hi, the answer:
Box 6
Box 5
Box 1
https://social.msdn.microsoft.com/Forums/en-US/6222b41a-fd51-47bf-ad4c-ccf06aa39b8e/070462-enable-condition?forum=sqldocumentation
Box 6 , Box 4 , Box 1 correct
sorry my bad. the correct ans : box 7 like , box 5 PREVENT , box 1 ENABLE