最新国产好看的视频,伊人天堂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)大,幾乎可通過該組建實(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)語句如下:

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

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

最新評論

珲春市| 都昌县| 黄大仙区| 盐山县| 淳安县| 吉首市| 策勒县| 昭觉县| 江津市| 上饶市| 武陟县| 郸城县| 宜黄县| 临城县| 习水县| 永德县| 蓬安县| 修水县| 房山区| 班玛县| 鲁甸县| 奉贤区| 陇南市| 英德市| 镇江市| 黔西| 万全县| 芦山县| 双城市| 南部县| 汽车| 襄城县| 澄江县| 霍山县| 若羌县| 高唐县| 巴青县| 喀喇沁旗| 兴安县| 阿合奇县| 荆州市|