Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
fn_virtualservernodes (Transact-SQL)
Collapse the table of content
Expand the table of content

fn_virtualservernodes (Transact-SQL)

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 2000 system function is included for backward compatibility. We recommend that you use sys.dm_os_cluster_nodes instead.


If the current server is a clustered server, fn_virtualservernodes returns a list of failover clustered instance nodes on which this instance of SQL Server has been defined.

If the current server instance is not a clustered server, fn_virtualservernodes returns an empty rowset.

The user must have VIEW SERVER STATE permission for the instance of SQL Server.

The following example uses fn_virtualservernodes to query on a clustered server instance:

SELECT * FROM fn_virtualservernodes()

This is the result set:





Release History

17 July 2006

Changed content:
  • Added note about deprecation, link to sys.dm_os_cluster_nodes topic.
  • Permissions are at the instance level, not the server level.
  • Updated node names in the result set.

Community Additions

© 2015 Microsoft