FIX: An access violation occurs when you have a CREATE_LINKED_SERVER event notification and you run the sp_addlinkedserver stored procedure

Symptoms
Assume that you create a CREATE_LINKED_SERVER event notification in an instance of Microsoft SQL Server 2012 or SQL Server 2014. When you run the sp_addlinkedserver stored procedure by using the sp_prepexecrpc stored procedure to create a linked server, 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
This issue was first fixed in the following cumulative update for SQL Server:
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 in the previous cumulative update. Check out the latest cumulative updates for SQL Server:

Note You can find information about the latest SQL Server builds from Where to find information about the latest SQL Server builds.
Workaround
To work around this problem, either remove the CREATE_LINKED_SERVER event notification or avoid running the sp_addlinkedserver stored procedure as a prepared remote procedure call (RPC). For example, avoid using the sp_prepexecrpc stored procedure to run sp_addlinkedserver.
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.
Properties

Article ID: 3133273 - Last Review: 05/31/2016 08:34:00 - Revision: 4.0

Microsoft SQL Server 2012 Developer, Microsoft SQL Server 2012 Enterprise, Microsoft SQL Server 2012 Express, Microsoft SQL Server 2012 Standard, 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 KB3133273
Feedback