国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > SQL Server > 正文

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

2024-08-31 01:01:04
字體:
來源:轉載
供稿:網友

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
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


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

復制代碼 代碼如下:


--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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 大同县| 万州区| 金堂县| 图片| 富川| 天津市| 赣榆县| 古蔺县| 莲花县| 罗定市| 平陆县| 高清| 仙桃市| 全州县| 南城县| 遂川县| 东阳市| 呼玛县| 马公市| 鹤庆县| 明光市| 昌黎县| 安图县| 津市市| 西和县| 临沂市| 拉孜县| 乳源| 鄂托克前旗| 塘沽区| 中江县| 遂川县| 基隆市| 罗平县| 蓬溪县| 安西县| 奉贤区| 贵溪市| 岚皋县| 敖汉旗| 新沂市|