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.)
Select and Place:
Which three actions should you perform in sequence?
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.)
Select and Place:
It should be
Create Condition (Not Like)
Create Policy (prevent)
Enable policy
nope… you prevent a LIKE SP%
Hi friends the real answer of this is
7
5
1
vimal lohani
mcp
The correct answer should be:
6,5,1
create a condition (Not like)
create a policy ( prevent on change)
enable
It would be LIKE because we have to prevent user from creating those procedures. As soon as someone creates proc would name sp_ the policy should fire and “prevent” this action.
I agree with om kumar’s aswer.
The condition must be like to prevent creating stored. I tested it so i’m pretty sure!
http://stackoverflow.com/questions/7581811/how-to-avoid-users-adding-a-user-stored-procedure-name-like-sp
Open SQL Management Studio
Go to “management” -> Conditions -> Create new condition
Enter a name for the condition.
Select Facet “Stored Procedure”
Enter in the column “Field” @name
Enter in the column “Operator” NOT LIKE
Enter in the column “Value” ‘sp[_]%’
Click on OK to save
Create a policy. Go to “management” -> Policy -> Create new Policy
Enter a name for the Policy
Select the name of the condition in the dropdown menu “check condition”
Set “Evaluation Mode” to ‘On change:Prevent’
Enable the policy
Click on OK to save and enable the policy
Test the policy by entering a new query
Mustafa and deni are correct. You must use the NOT LIKE option to get this to work.
Be aware that the question states that users must be *unable* to create stored porcedures that start with ‘sp_’. That’s a NOT LIKE ‘sp[_]’ condition that needs to be implemented.
The condition is a boolean expression that is tested by the policy. If the condition evaluates to TRUE, then all is well, as wanted. If it evaluates to FALSE, then the policy will handle it according to the Evaluation Mode you’ve chosen.
So, if the condition is:
@Name NOT LIKE ‘sp[_]’
and I try to run this code:
create procedure dbo.sp_test
@test int
AS
(whatever)
GO
then the condition evaluates to FALSE. This means the “On Change: prevent” evaluation mode in the policy kicks in and prevents sp_test from being created.
Deni, mustafa, jack are right:
http://www.mssqltips.com/sqlservertip/2298/enforce-sql-server-database-naming-conventions-using-policy-based-management/
it’s the “not like”
6 5 1
Just tried it, the anwser is ‘NOT LIKE’. 100% verified !
New 70-462 Exam Questions and Answers Updated Recently:
NEW QUESTION 198
You administer a Microsoft SQL Server 2012 server that hosts a transactional database and a reporting database. The transactional database is updated through a web application and is operational throughout the day. The reporting database is only updated from the transactional database. The recovery model and backup schedule are configured as shown in the following table:
image: examgod.com/plimages/0ec7c271419f_F81C/1981_thumb5_thumb.jpg
One of the hard disk drives that stores the reporting database fails at 23:32 hours. You need to ensure that the reporting database is restored. You also need to ensure that data loss is minimal. What should you do?
A. Perform a page restore.
B. Perform a partial restore.
C. Perform a point-in-time restore.
D. Restore the latest full backup.
E. Restore the latest full backup. Then, restore the latest differential backup.
F. Restore the latest full backup, and restore the latest differential backup. Then, restore the latest log backup.
G. Restore the latest full backup, and restore the latest differential backup. Then, restore each log backup taken before the time of failure from the most recent differential backup.
H. Restore the latest full backup. Then, restore each differential backup taken before the time of failure from the most recent full backup.
Answer: E
Explanation:
To recover the database, you must restore the latest full backup and then restore the latest differential backup.
Incorrect answers:
A: A page restore is used to repair isolated damaged pages. It is faster than a file restore id only a few individual pages are damaged.
B: Partial restores allow a database that contains multiple filegroups to be restored and recovered in stages.
It works with all recovery models, but is more flexible for the full and bulk-logged models than for the simple model.
C: Point in time restores are not supported for the simple backup model as log files are not part of the backup.
D: The latest full backup was performed at 01:00 hours, 22 hours and 32 minutes before the hard disk failure. A differential backup was made at 13:00 hours, 10 hours and 32 minutes before the hard disk failure. A differential backup contains data that has been added or updated since the last full backup and should be restored to minimize data loss.
F, G: There is not log backup in the simple backup model.
H: Only the latest differential backup needs to be restored.
NEW QUESTION 199
Drag and Drop Question
You administer a Microsoft SQL Server 2012 database named Human_Resources. You need to ensure that all read activity against any object in the Human_Resources database is audited and written to a text file. What should you do? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)
image: examgod.com/plimages/0ec7c271419f_F81C/1991_thumb4_thumb.jpg
Answer:
image: examgod.com/plimages/0ec7c271419f_F81C/1992_thumb4_thumb.jpg
Explanation:
The general process for creating and using an audit is as follows.
1. Create an audit and define the target.
2. Create either a server audit specification or database audit specification that maps to the audit. Enable the audit specification.
3. Enable the audit.
4. Read the audit events by using the Windows Event Viewer, Log File Viewer, or the fn_get_audit_file function.
NEW QUESTION 200
You administer a Microsoft SQL Server 2012 Enterprise Edition server that uses 64 cores. You discover performance issues when complex calculations are performed on large amounts of data under heavy system load. You need to limit the number of cores that process the calculations. What should you configure?
A. Max worker threads
B. Processor affinity
C. I/O affinity
D. Lightweight pooling
Answer: B
Explanation:
To carry out multitasking, the operating system sometimes moves process threads among different processors. This is efficient from an operating system point of view, but can reduce SQL Server performance under heavy system loads, as each processor cache is repeatedly reloaded with data. Assigning processors to specific threads can improve performance under these conditions by eliminating processor reloads; such an association between a thread and a processor is called processor affinity.
NEW QUESTION 201
……
NEW QUESTION 203
Which of the following conditions must exist prior to restoring a system database in SQL Server 2012?
A. The hard drive must be reformatted.
B. You must detach the user databases from the SQL 2012 instance.
C. The SQL Server 2012 instance must be started in single-user mode.
D. The SQL Server 2012 instance must be removed.
Answer: C
NEW QUESTION 204
Which of the following is the default instance name in an SQL Server 2012 installation?
A. SQLSERVER12
B. MSSQLSERVER
C. MSSQL
D. 2012SQL
Answer: B
NEW QUESTION 205
In which of the following statements about audit information stored in an SQL Server 2012 environment is TRUE?
A. It is located in a file specified in the File Path property of the Audit.
B. It is located in the Audit table in the MSDB database.
C. Each login has an audit record, which is viewable under Logins -> Audit.
D. SQL 2012 does not store any audit information.
Answer: A
NEW QUESTION 206
……
P.S. These New 70-462 Exam Questions Were Updated By PassLeader, You Can Get The Newest 70-462 Dumps In PDF And VCE From — https://tr.im/V0jkC (243q dumps)
Good Luck !!!
please email the pdf to [email protected]
[email protected]
this question is very wierd.. donno if to choose LIKE or NOT LIKE..
NOT LIKE is verified answer though…
6,5,1
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
Next time I review a blog site, I hope me as much as this one that it doesnt disappoint. After all, i understand they is my solution to read, but I really planning youd have actually some thing interesting to say. All I discover is actually a number of whining about some thing if you werent too busy looking for attention that you could fix.
https://www.evernote.com/shard/s684/sh/e951de52-0519-4ac3-8793-96fe248286ff/6d4e7595e224258d852ae9ec906740e2
Sorry, but the common sense logic is to prevent something LIKE ‘sp[_]%’. No matter what everybody states here, I’ll go for common sense…