| title | sys.fn_virtualservernodes (Transact-SQL) | Microsoft Docs | ||||||
|---|---|---|---|---|---|---|---|
| ms.custom | |||||||
| ms.date | 03/14/2017 | ||||||
| ms.prod | sql-non-specified | ||||||
| ms.reviewer | |||||||
| ms.suite | |||||||
| ms.technology |
|
||||||
| ms.tgt_pltfrm | |||||||
| ms.topic | language-reference | ||||||
| f1_keywords |
|
||||||
| dev_langs |
|
||||||
| helpviewer_keywords |
|
||||||
| ms.assetid | 257f3b8d-93c0-4444-87f1-ea211bd8cad0 | ||||||
| caps.latest.revision | 25 | ||||||
| author | BYHAM | ||||||
| ms.author | rickbyh | ||||||
| manager | jhubbard |
[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-pdw_md]
Returns a list of failover clustered instance nodes on which an instance of [!INCLUDEssNoVersion] can run. This information is useful in failover clustering environments.
Important
This [!INCLUDEmsCoName][!INCLUDEssSQL11] system function is included for backward compatibility. We recommend that you use sys.dm_os_cluster_nodes (Transact-SQL) instead.
| Applies to: [!INCLUDEssNoVersion] ([!INCLUDEssKatmai] through current version). |
Transact-SQL Syntax Conventions
fn_virtualservernodes()
If the current server is a clustered server, fn_virtualservernodes returns a list of failover clustered instance nodes on which this instance of [!INCLUDEssNoVersion] 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 [!INCLUDEssNoVersion].
The following example uses fn_virtualservernodes to query on a clustered server instance:
SELECT * FROM fn_virtualservernodes();
[!INCLUDEssResult]
NodeName
--------
SS3-CLUSN1
SS3-CLUSN2
sys.dm_os_cluster_nodes (Transact-SQL)
sys.fn_servershareddrives (Transact-SQL)