Operational Defect Database

BugZero found this defect 1308 days ago.

Microsoft SQL Server | 13521037

KB4580949 - FIX: Snapshot agent fails when you create Transactional Publication with all tables and UDFs in SQL Server 2019 - Microsoft Support

Last update date:

6/9/2023

Affected products:

SQL Server 2019 on Windows

Affected releases:

build lower than 15.0.4073.23

Fixed releases:

15.0.4073.23

Description:

Symptoms

Consider the following scenario: Assume that you upgrade a SQL Server instance to SQL Server 2019 RTM or later versions, or you restore a database from pre-SQL Server 2019 to SQL Server 2019 RTM or later versions. You change the database compatibility level to 150. When you create a Transactional Publication on the restored database with all the Tables and User-Defined Functions (UDFs), you notice that the Snapshot agent fails and returns the following error message: Microsoft.SqlServer.Replication.ReplicationAgentSqlException DateTime Exception Message: An invalid option was specified for the statement "CREATE/ALTER FUNCTION". DateTime  A RETURN statement with a return value cannot be used in this context. DateTime Message Code: 487

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 update for SQL Server: Cumulative Update 8 for SQL Server 2019 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: Latest cumulative update for SQL Server 2019

References

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

Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Unavailable

Learn More

Search:

...