最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

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

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

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

復(fù)制代碼 代碼如下:

--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ù)庫(kù)服務(wù)器的安全,建議在使用完畢后關(guān)閉該組件,關(guān)閉該組件的相關(guān)語(yǔ)句如下:

復(fù)制代碼 代碼如下:

--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)文章

最新評(píng)論

库伦旗| 新乡市| 新宁县| 琼中| 台南市| 峨边| 东海县| 麻阳| 五指山市| 京山县| 汉源县| 孟津县| 临泽县| 嫩江县| 枞阳县| 大名县| 共和县| 文安县| 景德镇市| 东宁县| 云龙县| 柳河县| 永嘉县| 巴青县| 大厂| 基隆市| 休宁县| 大丰市| 抚松县| 铁岭县| 娄底市| 麦盖提县| 抚松县| 淮滨县| 滨州市| 武汉市| 磐石市| 海盐县| 安新县| 德保县| 泗阳县|