Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

errors setting up transaction p2p replication on new sql2017 server

$
0
0

Microsoft SQL Server 2017 (RTM) - 14.0.1000.169 (X64)   Aug 22 2017 17:04:49   Copyright (C) 2017 Microsoft Corporation  Enterprise Edition: Core-based Licensing (64-bit) on Windows Server 2016 Standard 10.0 <X64> (Build 14393: ) (Hypervisor) 

on the server I get:

TITLE: New Publication Wizard
------------------------------

SQL Server is unable to complete the New Publication Wizard.

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=15.0.18142.0&EvtSrc=Microsoft.SqlServer.Management.UI.PubWizardErrorSR&EvtID=CantCompleteCreatePubWizard&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

Could not load file or assembly 'Microsoft.SqlServer.Replication.dll' or one of its dependencies. The specified module could not be found. (Microsoft.SqlServer.Rmo)

------------------------------
BUTTONS:

OK
------------------------------

from my PC:

I can create and delete merge replications with no errors. however, when I create a transactional replication, attempts to delete it yields though it does delete the replication even when I did not create a snapshot:

TITLE: Microsoft SQL Server Management Studio
------------------------------

Could not delete publication 'tashtit'.

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=14.0.17199.0&EvtSrc=Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.Replication.ReplicationMenuItem&EvtID=CantDeletePublication&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

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

------------------------------

Only one Log Reader Agent or log-related procedure (sp_repldone, sp_replcmds, and sp_replshowcmds) can connect to a database at a time. If you executed a log-related procedure, drop the connection over which the procedure was executed or execute sp_replflush over that connection before starting the Log Reader Agent or executing another log-related procedure.
Only one Log Reader Agent or log-related procedure (sp_repldone, sp_replcmds, and sp_replshowcmds) can connect to a database at a time. If you executed a log-related procedure, drop the connection over which the procedure was executed or execute sp_replflush over that connection before starting the Log Reader Agent or executing another log-related procedure.
Changed database context to 'tashtit'. (Microsoft SQL Server, Error: 18752)

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

------------------------------
BUTTONS:

OK
------------------------------

it is followed by:

TITLE: Publication Properties
------------------------------

Cannot save Peer conflict detection properties.

------------------------------
ADDITIONAL INFORMATION:

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

------------------------------

The publication 'tashtit' was already enabled for peer-to-peer conflict detection.
Changed database context to 'tashtit'. (Microsoft SQL Server, Error: 22828)

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

------------------------------
BUTTONS:

OK
------------------------------

if I try and change the transactional replication to p2p, I get the following error:

TITLE: Publication Properties
------------------------------

Cannot save Peer conflict detection properties.

------------------------------
ADDITIONAL INFORMATION:

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

------------------------------

A .NET Framework error occurred during execution of user-defined routine or aggregate "sp_MSscriptcustominsproc_sqlclr": 
System.Data.SqlClient.SqlException: String or binary data would be truncated.
System.Data.SqlClient.SqlException: 
   at Microsoft.SqlServer.Server.SmiEventSink_Default.DispatchMessages(Boolean ignoreNonFatalMessages)
   at Microsoft.SqlServer.Server.SqlPipe.SendResultsRow(SqlDataRecord record)
   at Microsoft.SqlServer.Replication.SqlPipeTextWriter.FlushRow()
   at Microsoft.SqlServer.Replication.SqlPipeTextWriter.WriteLine(String value)
   at Microsoft.SqlServer.Replication.SqlCodeGeneration.TransCustomProcedureScripter.ScriptInsertProcedure(TextWriter outputTextStream)
   at Microsoft.SqlServer.Replication.TransSqlClrCodeGenerators.GenerateArticleCustomProcedureScript(SqlDataReader dataReader)
   at Microsoft.SqlServer.Replication.TransSqlClrCodeGenerators.ProcessMetadataResults(SqlDataReader dataReader)
   at Microsoft.SqlServer.Replication.TransSqlClrCodeGenerators.GatherMetadataAndGenerateScript()
   at Microsoft.SqlServer.Replication.TransSqlClrCodeGenerators.ScriptCustomProcedure(SqlInt32 articleId, SqlString publisher, SqlString publisher_type, CustomStoredProcedureType customStoredProcedureType)
   at Microsoft.SqlServer.Replication.TransSqlClrCodeGenerators.sp_MSscriptcustominsproc_sqlclr(SqlInt32 articleId, SqlString publisher, SqlString publisher_type)
.
A .NET Framework error occurred during execution of user-defined routine or aggregate "sp_MSscriptcustomupdproc_sqlclr": 
System.Data.SqlClient.SqlException: String or binary data would be truncated.
System.Data.SqlClient.SqlException: 
   at Microsoft.SqlServer.Server.SmiEventSink_Default.DispatchMessages(Boolean ignoreNonFatalMessages)
   at Microsoft.SqlServer.Server.SqlPipe.SendResultsRow(SqlDataRecord record)
   at Microsoft.SqlServer.Replication.SqlPipeTextWriter.FlushRow()
   at Microsoft.SqlServer.Replication.SqlPipeTextWriter.WriteLine(String value)
   at Microsoft.SqlServer.Replication.SqlCodeGeneration.TransCustomProcedureScripter.ScriptUpdateProcedure(TextWriter outputTextStream)
   at Microsoft.SqlServer.Replication.TransSqlClrCodeGenerators.GenerateArticleCustomProcedureScript(SqlDataReader dataReader)
   at Microsoft.SqlServer.Replication.TransSqlClrCodeGenerators.ProcessMetadataResults(SqlDataReader dataReader)
   at Microsoft.SqlServer.Replication.TransSqlClrCodeGenerators.GatherMetadataAndGenerateScript()
   at Microsoft.SqlServer.Replication.TransSqlClrCodeGenerators.ScriptCustomProcedure(SqlInt32 articleId, SqlString publisher, SqlString publisher_type, CustomStoredProcedureType customStoredProcedureType)
   at Microsoft.SqlServer.Replication.TransSqlClrCodeGenerators.sp_MSscriptcustomupdproc_sqlclr(SqlInt32 articleId, SqlString publisher, SqlString publisher_type)
.
A .NET Framework error occurred during execution of user-defined routine or aggregate "sp_MSscriptcustomdelproc_sqlclr": 
System.Data.SqlClient.SqlException: String or binary data would be truncated.
System.Data.SqlClient.SqlException: 
   at Microsoft.SqlServer.Server.SmiEventSink_Default.DispatchMessages(Boolean ignoreNonFatalMessages)
   at Microsoft.SqlServer.Server.SqlPipe.SendResultsRow(SqlDataRecord record)
   at Microsoft.SqlServer.Replication.SqlPipeTextWriter.FlushRow()
   at Microsoft.SqlServer.Replication.SqlPipeTextWriter.WriteLine(String value)
   at Microsoft.SqlServer.Replication.SqlCodeGeneration.TransCustomProcedureScripter.ScriptDeleteProcedure(TextWriter outputTextStream, Boolean reconciliation)
   at Microsoft.SqlServer.Replication.TransSqlClrCodeGenerators.GenerateArticleCustomProcedureScript(SqlDataReader dataReader)
   at Microsoft.SqlServer.Replication.TransSqlClrCodeGenerators.ProcessMetadataResults(SqlDataReader dataReader)
   at Microsoft.SqlServer.Replication.TransSqlClrCodeGenerators.GatherMetadataAndGenerateScript()
   at Microsoft.SqlServer.Replication.TransSqlClrCodeGenerators.ScriptCustomProcedure(SqlInt32 articleId, SqlString publisher, SqlString publisher_type, CustomStoredProcedureType customStoredProcedureType)
   at Microsoft.SqlServer.Replication.TransSqlClrCodeGenerators.sp_MSscriptcustomdelproc_sqlclr(SqlInt32 articleId, SqlString publisher, SqlString publisher_type)
.
Changed database context to 'tashtit'. (Microsoft SQL Server, Error: 6522)

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

------------------------------
BUTTONS:

OK
------------------------------
TITLE: Publication Properties
------------------------------
it is followed by :

Cannot save Peer conflict detection properties.

------------------------------
ADDITIONAL INFORMATION:

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

------------------------------

The publication 'tashtit' was already enabled for peer-to-peer conflict detection.
Changed database context to 'tashtit'. (Microsoft SQL Server, Error: 22828)

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

------------------------------
BUTTONS:

OK
------------------------------

when I cancel, the properties show p2p enabled.








???


Viewing all articles
Browse latest Browse all 4054


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