時(shí)間:2024-02-08 11:17作者:下載吧人氣:35
這幾天接到一個(gè)需求需要吧不同系統(tǒng)的數(shù)據(jù)庫進(jìn)行同步,需要我做一個(gè)中間平臺進(jìn)行連接,瞬間就想到了觸發(fā)器調(diào)用接口然后通過API進(jìn)行傳遞再寫入另一個(gè)數(shù)據(jù)庫。
sqlServer觸發(fā)器調(diào)用JavaWeb接口
1、開啟 Ole Automation Procedures
sqlServer要想調(diào)用web接口,就要使用自帶的存儲過程。而這些存儲過程2005版本以后默認(rèn)時(shí)關(guān)閉的,所以要先開啟。
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)友評論