【问题标题】:Transactional replication errors事务复制错误
【发布时间】:2015-04-17 01:03:23
【问题描述】:

我正在尝试使用 AdventureWorks 2012 在 SQL Server 2012 中设置事务复制。在发布设置结束时,我收到以下错误:

SQL Server could not start the Snapshot Agent. Additional Information: An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) SQL ServerAgent is not currently running so it cannot be modified of this action. Changed database context to 'AdventureWorks2012'.(Microsoft SQL Server,Error 22022)

我猜这个错误不允许我执行以下代码:

USE ADRepl;
SELECT * FROM Person.BusinessEntity

每次执行此操作时都会出现以下错误:

Msg 208, Level 16, State 1, Line 2 Invalid object name 'Person.BusinessEntity'.

【问题讨论】:

  • 您是否启动了 SQL Server 代理并查看是否可以解决问题?注:干杯,谢谢等不是必需的。
  • 这使快照代理启动,但我仍然收到 Person.BusinessEntity 的错误
  • 您是否在 SQL Server Studio 中验证了表是否已复制以及是否有任何错误?有一个复制监视器会告诉您状态以及是否有任何错误
  • 我得到的错误是:进程无法执行'sp_replcmds'

标签: sql-server sql-server-2012 database-replication transactional-replication


【解决方案1】:

将您的 sql 代理属性设为自动。

【讨论】:

    【解决方案2】:

    自动设置 SQL server 代理服务。

    • 按windows键+R

    • 输入 services.msc

    • 右击sql server agent

    • 属性>>启动>>自动选择。

    【讨论】:

      猜你喜欢
      • 2014-05-20
      • 1970-01-01
      • 1970-01-01
      • 2012-03-10
      • 2021-02-13
      • 1970-01-01
      • 2022-08-15
      • 2016-06-21
      相关资源
      最近更新 更多