Applies To: SQL Server 2014, SQL Server 2016 Preview
Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).
Returns a list of failover clustered instance nodes on which an instance of SQL Server can run. This information is useful in failover clustering environments.
This Microsoft SQL Server 2012 system function is included for backward compatibility. We recommend that you use sys.dm_os_cluster_nodes (Transact-SQL) instead.
Applies to: SQL Server (SQL Server 2008 through current version).
The following example uses fn_virtualservernodes to query on a clustered server instance:
SELECT * FROM fn_virtualservernodes();
Here is the result set.