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'
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)文章
強(qiáng)制SQL Server執(zhí)行計劃使用并行提升在復(fù)雜查詢語句下的性能
最近在給一個客戶做調(diào)優(yōu)的時候發(fā)現(xiàn)一個很有意思的現(xiàn)象,對于一個復(fù)雜查詢(涉及12個表)建立必要的索引后,語句使用的IO急劇下降,但執(zhí)行時間不降反升,由原來的8秒升到20秒。2014-07-07SQL Server 數(shù)據(jù)庫的更改默認(rèn)備份目錄的詳細(xì)步驟
這篇文章主要介紹了SQL Server 數(shù)據(jù)庫的更改默認(rèn)備份目錄的詳細(xì)步驟,需要的朋友可以參考下2023-04-04sqlserver數(shù)據(jù)庫導(dǎo)入數(shù)據(jù)操作詳解(圖)
本文主要介紹的是怎么使用Microsoft SQL Server Management Studio導(dǎo)入數(shù)據(jù),大家參考使用吧2014-01-01SQLServer 2008數(shù)據(jù)庫降級到2005低版本
SQLServer 2008R2備份的數(shù)據(jù)庫還原到2008上面時報錯引發(fā)的思考,如何把SQLServer數(shù)據(jù)庫從高版本降級到低版本?本文為大家解答2016-11-11SQL Server 2012使用Offset/Fetch Next實(shí)現(xiàn)分頁數(shù)據(jù)查詢
在Sql Server 2012之前,實(shí)現(xiàn)分頁主要是使用ROW_NUMBER(),在SQL Server2012,可以使用Offset ...Rows Fetch Next ... Rows only的方式去實(shí)現(xiàn)分頁數(shù)據(jù)查詢,具體代碼詳解大家參考下本文2017-07-07