FIX: Adding new Publication may fail if distribution database is in AG and collation is set to BIN in SQL Server 2016 and 2017

Kehtib: SQL Server 2016 DeveloperSQL Server 2016 EnterpriseSQL Server 2016 Enterprise Core

Symptoms


Consider the following scenario:

  • You use Microsoft SQL Server 2016 or 2017 for publisher, distributor and subscriber.
  • The Distribution database is part of an Availability Group (AG).
  • You add new Publication to the Distribution database in the AG.
  • The collation is set to BIN or case-sensitive.

In this situation, the publication may fail with an error message that resembles the following:

Error 4104, Level 16, State 1, Procedure ProcedureName, Line LineNumber

The multi-part identifier "s.job_id" could not be bound.

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. 

Resolution


This issue is fixed in the following cumulative updates for SQL Server:

About cumulative updates for SQL Server:

Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:

References


Learn about the terminology that Microsoft uses to describe software updates.