SQL Server blocks the solution to the component xp_cmdshell process

Source: Internet
Author: User

SQL Server blocks the solution to the component xp_cmdshell process
Error description: SQL Server blocked access to the process ' Sys.xp_cmdshell ' for component ' xp_cmdshell '. Because this component has been shut down as part of this service's security configuration. System administrators can enable ' xp_cmdshell ' by using sp_configure. For more information about enabling ' xp_cmdshell ', see the SQL Help file.


"Analysis":

Querying network data and SQL Help shows that xp_cmdshell can let system administrators execute a given command string as an operating system command-line interpreter and return any output as text lines, which is a very powerful extended storage process. In general, xp_cmdshell is also unnecessary for administrators, and the removal of xp_cmdshell does not have any impact on the server. When performing certain SQL operations, the SQL system requires this service to be turned on, as in this example, the new establish accounts set of operations.


"Processing":
<span STYLE28 "style=" line-height:150% ">1, executing commands in Query Analyzer
Through Query Analyzer, select the master database and execute the following SQL content:
sp_configure ' show advanced options ', 1
Reconfigure
Go
sp_configure ' xp_cmdshell ', 1
Reconfigure

Go


Source: Snow Wolf (http://blog.sina.com.cn/xuelang1981)

SQL Server blocks the solution to the component xp_cmdshell process

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.