You are currently offline, waiting for your internet to reconnect

Your browser is out-of-date

You need to update your browser to use the site.

Update to the latest version of Internet Explorer

FIX: Access violation occurs when a CTE calls a synonym in SQL Server 2012

Symptoms
Assume that you create a synonym for a scalar function in Microsoft SQL Server 2012. When a common table expression (CTE) calls the synonym in a different function, an access violation occurs. Additionally, you receive the following error message:
Msg 0, Level 11, State 0, Line 0

A severe error occurred on the current command. The results, if any, should be discarded.
Resolution

Cumulative update information

Cumulative update 5 for SQL Server 2012 Service Pack 1

The fix for this issue was first released in Cumulative Update 5. For more information about how to obtain this cumulative update package for SQL Server 2012 Service Pack 1, click the following article number to view the article in the Microsoft Knowledge Base:
2861107 Cumulative update package 5 for SQL Server 2012 Service Pack 1
Note Because the builds are cumulative, each new fix release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2012 Service Pack 1 fix release. We recommend that you consider applying the most recent fix release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2772858 The SQL Server 2012 builds that were released after SQL Server 2012 Service Pack 1 was released
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Properties

Article ID: 2861387 - Last Review: 07/15/2013 16:16:00 - Revision: 1.0

  • Microsoft SQL Server 2012 Service Pack 1
  • kbqfe kbfix kbsurveynew kbexpertiseadvanced KB2861387
Feedback