SQL Server 2005的cmd_shell组件的开启方法
SQL Server中的cmd_shell组件功能强大,几乎可通过该组建实现Windows系统的所有功能,正因此,这个组件也是SQL Server的最大安全隐患。SQL Server 2000中这个组件是默认开启的,而SQL Server 2005中这个组件默认作为此服务器安全配置的一部分而被关闭。有时我们需要用到该组件,开启此组件的相关语句如下: 代码如下:--To allow advanced options to be changed. EXEC sp_configure 'show advanced options',1 --To update the currently configured value for advanced options. EXEC sp_configure 'xp_cmdshell',1
代码如下:--To allow advanced options to be changed. EXEC sp_configure 'show advanced options',0 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |