FIX: "A severe error occurred on the current command" when a Table-Valued User-Defined function is referred to by a synonym
You create a view that queries data from a Table-Valued User-Defined function in Microsoft SQL Server. If the function is defined in another database that's referred to by a synonym in the query, you may receive the following error message:
Msg 0, Level 11, State 0A severe error occurred on the current command. The results, if any, should be discarded.
Cumulative Update informationThis issue is fixed in the following updates:
- Cumulative Update 13 for SQL Server 2014
- Cumulative Update 6 for SQL Server 2014 Service Pack 1 (SP1)
- Cumulative Update 11 for SQL Server 2012 Service Pack 2 (SP2)
- Cumulative Update 3 for SQL Server 2012 SP3
- Cumulative Update 1 for SQL Server 2016
Recommendation: Install the latest cumulative update 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:
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Learn about the terminology that Microsoft uses to describe software updates.
Article ID: 3139489 - Last Review: 07/26/2016 08:46:00 - Revision: 7.0
Microsoft SQL Server 2012 Service Pack 2, Microsoft SQL Server 2014 Service Pack 1, Microsoft SQL Server 2014 Developer, Microsoft SQL Server 2014 Enterprise, Microsoft SQL Server 2014 Standard
- kbqfe kbfix kbexpertiseinter kbsurveynew KB3139489