【发布时间】: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