此错误可由任何复制代理失败引发。
确切问题将取决于失败的上下文并且可以在警报描述中找到。
请执行以下步骤:
重新启动失败的代理程序,以查看它现在是否可以工作。
警报描述的文本可以帮助您缩小问题的范围。搜索可用资源以了解单词“失败”之后的具体文本。
检查代理程序历史记录中是否存在时间大致相同的其他错误,这样可以帮助您解决失败。
向失败的复制代理程序添加一个日志。根据错误的上下文,这可能提供导致错误和/或其他错误消息的步骤。有关为复制配置日志的详细信息,请参阅在“外部”部分中引用的 Microsoft 知识库文章。
如果在创建或应用快照发生错误时,请检查快照目录中的文件以查找错误。
验证代理访问的计算机之间的基本连接是否正常工作,然后通过 sqlcmd 之类的实用程序连接到每台计算机。连接时,请使用代理建立连接使用的同一帐户。
如何启动和停止复制代理 (SQL Server Management Studio)
如何查看与订阅相关的代理的信息并执行此代理的任务(复制监视器)
Target | Microsoft.SQLServer.2008.DBEngine | ||
Category | EventCollection | ||
Enabled | False | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | High | ||
Remotable | True | ||
Alert Message |
|
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.SQLServer.2008.EventProvider | Default |
GenerateAlert | WriteAction | System.Health.GenerateAlert | Default |
<Rule ID="Microsoft.SQLServer.2008.ReplicationAgentFailureRule" Target="SQL2008Core!Microsoft.SQLServer.2008.DBEngine" Enabled="false" ConfirmDelivery="true">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2008.EventProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<PublisherName>$Target/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$</PublisherName>
<EventNumber>20536</EventNumber>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>2</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SQLServer.2008.ReplicationAgentFailureRule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/LoggingComputer$</SuppressionValue>
<SuppressionValue>$Data/PublisherName$</SuppressionValue>
<SuppressionValue>$Data/EventDisplayNumber$</SuppressionValue>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>