2010-09-17 127 views
1

我使用SQL Server 2008的發佈者和SQL Server 2005 Express的用戶, 當我插入到表從我的用戶這個錯誤發生:RPC安全信息缺少

Msg 21079, Level 16, State 1, Procedure sp_getpublisherlink, Line 52 
The RPC security information for the Publisher is missing or invalid. Use sp_link_publication to specify it. 
Msg 20512, Level 16, State 1, Procedure sp_MSreplraiserror, Line 8 
Updateable Subscriptions: Rolling back transaction. 
Msg 3609, Level 16, State 1, Line 1 
The transaction ended in the trigger. The batch has been aborted. 

當插入到表從發佈商的所有事情都沒問題。

回答

2

嘗試在訂戶上創建鏈接。在你的用戶數據庫上運行這個。

sp_link_publication @publisher = '{publisher instance name}' 
, @publisher_db = '{published database name}' 
, @publication = '{publication name}' 
, @security_mode = '1' 
, @login = '{sql server login account to connect publisher}' 
, @password = '{password}' 
, @distributor = '{distributor instance name}' 
+0

thnx但發生此錯誤:登錄失敗。登錄來自不受信任的域,並且不能用於Windows身份驗證。 – MHF 2010-09-18 08:44:20

+0

解決了這個錯誤,只有使用sql身份驗證登錄到用戶,然後在sp_link_publication之上運行,現在所有的東西都可以 – MHF 2010-09-18 09:12:02