事务复制错误

时间:2015-04-17 01:03:24

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

我尝试使用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'.

2 个答案:

答案 0 :(得分:0)

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

答案 1 :(得分:0)

自动设置SQL Server代理服务。

  • 按Windows键+ R

  • type services.msc

  • 右键单击sql服务器代理

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