KB3093869 - FIX: SQLDiag fails with function 87 error in a SQL AlwaysOn availability group

Applies To
SQL Server 2012 Enterprise SQL Server 2012 Developer SQL Server 2012 Standard SQL Server 2012 Web

Symptoms

When the SQLDiag utility runs on a server in a Windows Cluster and at least one computer in this cluster group has a 15-character-long name, the SQLDiag utility would fail. Additionally, you receive the following error message in the SQLDiag output logs:

Note

Error enumerating virtual servers.  Is your SQL Server instance clustered?
There are no instances of version 12 on this computer.
Function result: 87. Message: The parameter is incorrect.

Resolution

The issue was first fixed in the following cumulative update of 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 with the previous cumulative update. We recommend that you download and install the latest cumulative updates for SQL Server:

      

Status

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