Misha's profileMisha BirmanPhotosBlogLists Tools Help
    August 10

    Enabling xp_cmdshell in SQL Server 2005

    By default, xp_cmdshell is disabled in SQL Server 2005 for security reasons.  We are currently using xp_cmdshell in tsql scripts to build prediction data, so I must enable xp_cmdshell on my SQL Server 2005 instances.  There are two ways to enable this option: Surface Area Configuration tool or sp_configure.  Enabling this option via Surface Area Configuration tool is rather straight forward.  Here is the script to enable xp_cmdshell in SQL Server 2005 via sp_configure:

    EXEC master.dbo.sp_configure 'show advanced options', 1

    RECONFIGURE

    EXEC

    master.dbo.sp_configure 'xp_cmdshell', 1

    RECONFIGURE

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    Weblogs that reference this entry
    • None