時(shí)間:2024-02-08 11:17作者:下載吧人氣:26
這幾天接到一個(gè)需求需要吧不同系統(tǒng)的數(shù)據(jù)庫(kù)進(jìn)行同步,需要我做一個(gè)中間平臺(tái)進(jìn)行連接,瞬間就想到了觸發(fā)器調(diào)用接口然后通過(guò)API進(jìn)行傳遞再寫(xiě)入另一個(gè)數(shù)據(jù)庫(kù)。
sqlServer觸發(fā)器調(diào)用JavaWeb接口
1、開(kāi)啟 Ole Automation Procedures
sqlServer要想調(diào)用web接口,就要使用自帶的存儲(chǔ)過(guò)程。而這些存儲(chǔ)過(guò)程2005版本以后默認(rèn)時(shí)關(guān)閉的,所以要先開(kāi)啟。
sp_configure ‘show advanced options’, 1;
GO
RECONFIGURE;
GO
sp_configure ‘Ole Automation Procedures’, 1;
GO
RECONFIGURE;
GO
EXEC sp_configure ‘Ole Automation Procedures’;
GO
網(wǎng)友評(píng)論