Hi,
I am having trouble setting up replication from our SQL server cluster (2 clustered nodes) to another off site server. (all are SQL server 2019 Std) connecting to the cluster server name (SVR-SQLCL-01,1433\MSSQLSERVER) I have been following all the steps
set out in the following documentation and setting it all up as my domain admin account
https://docs.microsoft.com/en-us/sql/relational-databases/replication/tutorial-preparing-the-server-for-replication?view=sql-server-ver15
https://docs.microsoft.com/en-us/sql/relational-databases/replication/tutorial-replicating-data-with-mobile-clients?view=sql-server-ver15
however when trying to start the agent I am getting errors, I have tried reducing the replication to one single table to see whether the error still occurs, which it does. the accounts for the replication (repl_snapshot etc) are domain accounts and have
dbo mappings on the database. Have I missed something as I cant seem to find a fix to resolve this issue. Here are some of the error messages
This is from the Snapshot Agent History (An unspecified error had occured in the native SQL Server connection component)
Error messages:
Message: An unspecified error had occurred in the native SQL Server connection component.
Stack: at Microsoft.SqlServer.Replication.Snapshot.SqlServer.NativeBcpOutProvider.ThrowNativeBcpOutException(CConnection* pNativeConnectionWrapper)
at Microsoft.SqlServer.Replication.Snapshot.SqlServer.NativeBcpOutProvider.ThrowConnectionFailureException(CConnection* pNativeConnectionWrapper)
at Microsoft.SqlServer.Replication.Snapshot.SqlServer.NativeBcpOutProvider.InitializeNativeBcpOutProvider(LogMessageCallback logMessageCallback, String strName, String strApplication, String strHost, String strServer, String strNetwork, Int32 encryptionLevel,
String strDatabase, SecurityMode securityMode, String strLogin, SecureString strPassword, Int32 bcpBatchSize, Int32 loginTimeout, Int32 queryTimeout, Int32 packetSize, DeadlockPriority deadlockPriority, String strRowDelimiter, String strFieldDelimiter, Byte
syncMethod, Boolean forceOdbcBcp, Boolean forceOleDbBcp, Boolean enableMultipleActiveResultSets, Boolean useReadPastHint, Boolean usePageLockHint, Boolean securePassword)
at Microsoft.SqlServer.Replication.Snapshot.TransSnapshotProvider.InstantiateBcpOutProviderWorker(String strBcpConnectionName)
at Microsoft.SqlServer.Replication.Snapshot.SqlServerSnapshotProvider.InstantiateBcpOutProvider(String strBcpConnectionName)
at Microsoft.SqlServer.Replication.Snapshot.SqlServer.BcpOutThreadProvider.Initialize()
at Microsoft.SqlServer.Replication.WorkerThread.NonExceptionBasedAgentThreadProc()
at Microsoft.SqlServer.Replication.MainWorkerThread.AgentThreadProc()
at Microsoft.SqlServer.Replication.AgentCore.BaseAgentThread.AgentThreadProcWrapper() (Source: MSSQL_REPL, Error number: MSSQL_REPL55012)
in the Job activity Monitor
Date
26/02/2020 08:20:36
Log
Job History (SVR-SQLCL-01-Companion-CompanionTransMerge-2)
Step ID
2
Server
SVR-SQLCL-01
Job Name
SVR-SQLCL-01-Companion-CompanionTransMerge-2
Step Name
Run agent.
Duration
00:00:03
Sql Severity
0
Sql Message ID
0
Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted
0
Message
2020-02-26 08:20:37.06 Microsoft (R) SQL Server Snapshot Agent
2020-02-26 08:20:37.06 [Assembly Version = 15.0.0.0, File Version = 15.0.2000.5]
2020-02-26 08:20:37.06 Copyright (c) 2016 Microsoft Corporation.
2020-02-26 08:20:37.06 The timestamps prepended to the output lines are expressed in terms of UTC time.
2020-02-26 08:20:37.06 User-specified agent parameter values:
2020-02-26 08:20:37.06 --------------------------------------
2020-02-26 08:20:37.06 -Publisher SVR-SQLCL-01
2020-02-26 08:20:37.06 -PublisherDB Companion
2020-02-26 08:20:37.06 -Publication CompanionTransMerge
2020-02-26 08:20:37.06 -Distributor SVR-SQLCL-01
2020-02-26 08:20:37.06 -DistributorSecurityMode 1
2020-02-26 08:20:37.06 -XJOBID 0x56C29F9FE0A370409ED23E81AB5354EA
2020-02-26 08:20:37.06 --------------------------------------
2020-02-26 08:20:37.06 Connecting to Distributor 'SVR-SQLCL-01'
2020-02-26 08:20:37.13 Parameter values obtained from agent profile:
2020-02-26 08:20:37.13 ---------------------------------------------
2020-02-26 08:20:37.13 -BcpBatchSize 100000
2020-02-26 08:20:37.13 -HistoryVerboseLevel 2
2020-02-26 08:20:37.13 -LoginTimeout 15
2020-02-26 08:20:37.13 -QueryTimeout 1800
2020-02-26 08:20:37.13 ---------------------------------------------
2020-02-26 08:20:37.13 Validating Publisher
2020-02-26 08:20:37.14 Connecting to Publisher 'SVR-SQLCL-01'
2020-02-26 08:20:37.14 Publisher database compatibility level is set to 100.
2020-02-26 08:20:37.14 Retrieving publication and article information from the publisher database 'SVR-SQLCL-01.Companion'
2020-02-26 08:20:37.19 [0%] Activated articles for publication 'CompanionTransMerge' at the publisher.
2020-02-26 08:20:37.19 [0%] The replication agent had encountered an exception.
2020-02-26 08:20:37.19 Source: Replication
2020-02-26 08:20:37.19 Exception Type: Microsoft.SqlServer.Replication.ReplicationAgentException
2020-02-26 08:20:37.19 Exception Message: An unspecified error had occurred in the native SQL Server connection component.
2020-02-26 08:20:37.19 Message Code: 55012
2020-02-26 08:20:37.19
any further detail required, please let me know