Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Can't create snapshot agent for SQL Server 2016 publication

$
0
0

Just installed a SQL Server 2016 instance fresh. Previously I've used merge replication for 2008 and 2012 without issues. I'm trying to do the same here, and while I can create the publication no problem, I get the following error when I try to create the snapshot agent. The SQL Server Agent is running, I can't find anything on the error online:

===================================

Cannot save changes to agent security settings.

===================================

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------ Program Location:

at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(String sqlCommand, ExecutionTypes executionType, Boolean retry) at Microsoft.SqlServer.Replication.ReplicationObject.ExecCommand(String commandIn) at Microsoft.SqlServer.Replication.Publication.CreateSnapshotAgent()
at Microsoft.SqlServer.Management.UI.PageCreatePubAgentSecurity.SaveAgentSecurity(ReplAgentType type) at Microsoft.SqlServer.Management.UI.PubPropAgentSecurity.SaveProperties(ExecutionMode& executionResult)

===================================

Could not find stored procedure 'sys.sp_MSaddreplsymmetrickey'. Changed database context to 'CoBRAClientData'. (.Net SqlClient Data Provider)

------------------------------ For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=13.00.1601&EvtSrc=MSSQLServer&EvtID=2812&LinkId=20476

------------------------------ Server Name: SERVER1\COBRASERVER Error Number: 2812 Severity: 16 State: 62 Procedure: sp_MSreplopensymmetrickey Line Number: 37

------------------------------ Program Location:

at Microsoft.SqlServer.Management.Common.ConnectionManager.ExecuteTSql(ExecuteTSqlAction action, Object execObject, DataSet fillDataSet, Boolean catchException) at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(String sqlCommand, ExecutionTypes executionType, Boolean retry)

this happens through both sql management studio, and if i use the script:

exec sp_addpublication_snapshot @publication = N'CoBRAClientPub', @frequency_type = 4, @frequency_interval = 14, @frequency_relative_interval = 1, @frequency_recurrence_factor = 0, @frequency_subday = 1, @frequency_subday_interval = 5, @active_start_time_of_day = 500, @active_end_time_of_day = 235959, @active_start_date = 0, @active_end_date = 0, @job_login = N'server1\repl_snapshot', @job_password = null, @publisher_security_mode = 1

Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>