2010-09-17 115 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