FIX: Error 2809 when you execute a stored procedure that takes a table-valued parameter from RPC calls in SQL Server 2014 or 2016

Applies to: SQL Server 2014 DeveloperSQL Server 2014 DeveloperSQL Server 2014 Enterprise More

Symptoms


Assume that you create a synonym for a stored procedure that takes a table-valued parameter in Microsoft SQL Server 2014 or 2016. When you execute that stored procedure by using the synonym from a remote procedure call (RPC), for example, from a C# application, the execution fails, and you receive the following error message:
Error: 2809
The request for procedure <procedure name> failed because <object name> is a synonym object.
 
Note When you execute the same stored procedure by using SQL Server Management Studio, this issue does not occur.

Resolution


The issue is fixed in the following cumulative updates of SQL Server:

Status


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

References


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