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

SQL Server 定時訪問url激活數(shù)據(jù)同步示例

 更新時間:2014年05月20日 08:46:36   作者:  
這篇文章主要介紹的是SQL Server 定時訪問url激活數(shù)據(jù)同步的具體實(shí)現(xiàn),需要的朋友可以參考下
創(chuàng)建作業(yè),執(zhí)行以下命令

exec master..XP_cmdshell 'http://srm.rapoo.cn?op=sapintferace&i=1&t=1'

激活執(zhí)行同步網(wǎng)步

以下內(nèi)容來自網(wǎng)絡(luò),介紹如何啟用 xp_cmdshell 擴(kuò)展存儲過程將命令

一、簡介
xp_cmdshell 擴(kuò)展存儲過程將命令字符串作為操作系統(tǒng)命令 shell 執(zhí)行,并以文本行的形式返回所有輸出。

三、SQL Server 2005中的xp_cmdshell
由于存在安全隱患,所以在SQL Server 2005中, xp_cmdshell 默認(rèn)是關(guān)閉的。
此時,如果執(zhí)行 xp_cmdshell 將會提示服務(wù)未開啟:

exec xp_cmdshell 'dir c:/'

消息 15281,級別 16,狀態(tài) 1,過程 xp_cmdshell,第 1 行
SQL Server 阻止了對組件 'xp_cmdshell' 的 過程'sys.xp_cmdshell' 的訪問,因為此組件已作為此服務(wù)器安全配置的一部分而被關(guān)閉。系統(tǒng)管理員可以通過使用 sp_configure 啟用 'xp_cmdshell'。有關(guān)啟用 'xp_cmdshell' 的詳細(xì)信息,請參閱 SQL Server 聯(lián)機(jī)叢書中的 "外圍應(yīng)用配置器"。

四、開啟xp_cmdshell

EXEC sp_configure 'show advanced options', 1;RECONFIGURE;EXEC sp_configure 'xp_cmdshell', 1;RECONFIGURE;
  
關(guān)閉一樣.只是將上面的后面的那個"1"改成"0"就可以了.
  
EXEC sp_configure 'show advanced options', 1;RECONFIGURE;EXEC sp_configure 'xp_cmdshell', 0;RECONFIGURE;

未能找到存儲過程 'master..xp_cmdshell'
第一步執(zhí)行:EXEC sp_addextendedproc xp_cmdshell,@dllname ='xplog70.dll'declare @o int
第二步執(zhí)行:sp_addextendedproc 'xp_cmdshell','xpsql70.dll'

相關(guān)文章

最新評論