欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

SQL Server 2005的cmd_shell組件的開啟方法

 更新時間:2013年09月25日 16:25:57   作者:  
這篇文章介紹了SQL Server 2005的cmd_shell組件的開啟方法,有需要的朋友可以參考一下

SQL Server中的cmd_shell組件功能強大,幾乎可通過該組建實現(xiàn)Windows系統(tǒng)的所有功能,正因此,這個組件也是SQL Server的最大安全隱患。SQL Server 2000中這個組件是默認開啟的,而SQL Server 2005中這個組件默認作為此服務器安全配置的一部分而被關(guān)閉。有時我們需要用到該組件,開啟此組件的相關(guān)語句如下:

復制代碼 代碼如下:

--To allow advanced options to be changed.

EXEC sp_configure 'show advanced options', 1
GO

--To update the currently configured value for advanced options.
RECONFIGURE
GO -- To enable the feature.

EXEC sp_configure 'xp_cmdshell', 1
GO
--To update the currently configured value for this feature.
RECONFIGURE
GO


為了保證數(shù)據(jù)庫服務器的安全,建議在使用完畢后關(guān)閉該組件,關(guān)閉該組件的相關(guān)語句如下:

復制代碼 代碼如下:

--To allow advanced options to be changed.

EXEC sp_configure 'show advanced options', 1
GO

--To update the currently configured value for advanced options.
RECONFIGURE
GO -- To enable the feature.

EXEC sp_configure 'xp_cmdshell', 0
GO
--To update the currently configured value for this feature.
RECONFIGURE
GO

相關(guān)文章

最新評論