Solved

XP_CmdShell Policy for Specific Database

Posted on 2013-11-04
3
255 Views
Last Modified: 2013-11-06
I want to create a policy which enables xp_cmdshell for a specific database.  When I choose Database or DatabaseSecurity as my facet I don't get a choice for xp_cmdshell.  When I choose ServerSecurity I do.

I've also tried setting it up as a ServiceAreaConfiguration facet but then I don't see anything to select in "targets".

Bottom line, can I enable this for a specific DB or can I only enable it server wide?
0
Comment
Question by:cat4larry
  • 2
3 Comments
 
LVL 30

Accepted Solution

by:
Rich Weissler earned 500 total points
ID: 39623991
As you suspect, the xp_cmdshell option is a server-wide configuration option, and isn't configurable at the database level.  If enabled, xp_cmdshell does require at least CONTROL SERVER permissions to run, so it's use can be controlled.
0
 

Author Comment

by:cat4larry
ID: 39625709
do you have any links to GOOD resources regarding Policy Management on Sql Server 2012.  The MS ones, IMHO, are not very good.  They are long on wind and short on examples.

Thanks
0
 
LVL 30

Expert Comment

by:Rich Weissler
ID: 39626166
Unfortunately I haven't found one, and only know the basics of Policy Mgmt.  I have only used it in testing/lab environments.  I've read chapters out of more general purpose SQL 2012 books, and haven't found them very helpful.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question