SQL Server 定時(shí)訪問(wèn)url激活數(shù)據(jù)同步示例
發(fā)布日期:2021-12-28 19:14 | 文章來(lái)源:源碼之家
exec master..XP_cmdshell 'http://srm.rapoo.cn?op=sapintferace&i=1&t=1'
激活執(zhí)行同步網(wǎng)步
以下內(nèi)容來(lái)自網(wǎng)絡(luò),介紹如何啟用 xp_cmdshell 擴(kuò)展存儲(chǔ)過(guò)程將命令
一、簡(jiǎn)介
xp_cmdshell 擴(kuò)展存儲(chǔ)過(guò)程將命令字符串作為操作系統(tǒng)命令 shell 執(zhí)行,并以文本行的形式返回所有輸出。 三、SQL Server 2005中的xp_cmdshell
由于存在安全隱患,所以在SQL Server 2005中, xp_cmdshell 默認(rèn)是關(guān)閉的。
此時(shí),如果執(zhí)行 xp_cmdshell 將會(huì)提示服務(wù)未開(kāi)啟: exec xp_cmdshell 'dir c:/' 消息 15281,級(jí)別 16,狀態(tài) 1,過(guò)程 xp_cmdshell,第 1 行
SQL Server 阻止了對(duì)組件 'xp_cmdshell' 的 過(guò)程'sys.xp_cmdshell' 的訪問(wèn),因?yàn)榇私M件已作為此服務(wù)器安全配置的一部分而被關(guān)閉。系統(tǒng)管理員可以通過(guò)使用 sp_configure 啟用 'xp_cmdshell'。有關(guān)啟用 'xp_cmdshell' 的詳細(xì)信息,請(qǐng)參閱 SQL Server 聯(lián)機(jī)叢書(shū)中的 "外圍應(yīng)用配置器"。 四、開(kāi)啟xp_cmdshell EXEC sp_configure 'show advanced options', 1;RECONFIGURE;EXEC sp_configure 'xp_cmdshell', 1;RECONFIGURE;
關(guān)閉一樣.只是將上面的后面的那個(gè)"1"改成"0"就可以了.
EXEC sp_configure 'show advanced options', 1;RECONFIGURE;EXEC sp_configure 'xp_cmdshell', 0;RECONFIGURE; 未能找到存儲(chǔ)過(guò)程 'master..xp_cmdshell'
第一步執(zhí)行:EXEC sp_addextendedproc xp_cmdshell,@dllname ='xplog70.dll'declare @o int
第二步執(zhí)行:sp_addextendedproc 'xp_cmdshell','xpsql70.dll'
xp_cmdshell 擴(kuò)展存儲(chǔ)過(guò)程將命令字符串作為操作系統(tǒng)命令 shell 執(zhí)行,并以文本行的形式返回所有輸出。 三、SQL Server 2005中的xp_cmdshell
由于存在安全隱患,所以在SQL Server 2005中, xp_cmdshell 默認(rèn)是關(guān)閉的。
此時(shí),如果執(zhí)行 xp_cmdshell 將會(huì)提示服務(wù)未開(kāi)啟: exec xp_cmdshell 'dir c:/' 消息 15281,級(jí)別 16,狀態(tài) 1,過(guò)程 xp_cmdshell,第 1 行
SQL Server 阻止了對(duì)組件 'xp_cmdshell' 的 過(guò)程'sys.xp_cmdshell' 的訪問(wèn),因?yàn)榇私M件已作為此服務(wù)器安全配置的一部分而被關(guān)閉。系統(tǒng)管理員可以通過(guò)使用 sp_configure 啟用 'xp_cmdshell'。有關(guān)啟用 'xp_cmdshell' 的詳細(xì)信息,請(qǐng)參閱 SQL Server 聯(lián)機(jī)叢書(shū)中的 "外圍應(yīng)用配置器"。 四、開(kāi)啟xp_cmdshell EXEC sp_configure 'show advanced options', 1;RECONFIGURE;EXEC sp_configure 'xp_cmdshell', 1;RECONFIGURE;
關(guān)閉一樣.只是將上面的后面的那個(gè)"1"改成"0"就可以了.
EXEC sp_configure 'show advanced options', 1;RECONFIGURE;EXEC sp_configure 'xp_cmdshell', 0;RECONFIGURE; 未能找到存儲(chǔ)過(guò)程 'master..xp_cmdshell'
第一步執(zhí)行:EXEC sp_addextendedproc xp_cmdshell,@dllname ='xplog70.dll'declare @o int
第二步執(zhí)行:sp_addextendedproc 'xp_cmdshell','xpsql70.dll'
版權(quán)聲明:本站文章來(lái)源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請(qǐng)保持原文完整并注明來(lái)源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非maisonbaluchon.cn所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來(lái)源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來(lái),僅供學(xué)習(xí)參考,不代表本站立場(chǎng),如有內(nèi)容涉嫌侵權(quán),請(qǐng)聯(lián)系alex-e#qq.com處理。
相關(guān)文章
關(guān)注官方微信