| title | sys.fn_servershareddrives (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 | ff01eff7-8cb6-460c-ba7a-6a52bda6d471 | ||||
| caps.latest.revision | 39 | ||||
| author | BYHAM | ||||
| ms.author | rickbyh | ||||
| manager | jhubbard |
[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx_md]
Returns the names of shared drives used by the clustered server.
Important
This [!INCLUDEssNoVersion] system function is included for backward compatibility. We recommend that you use sys.dm_io_cluster_valid_path_names (Transact-SQL) instead.
Transact-SQL Syntax Conventions
fn_servershareddrives()
If the current server is a clustered server, fn_servershareddrives returns the drive name of the shared drives.
If the current server instance is not a clustered server, fn_servershareddrives returns an empty rowset.
fn_servershareddrives returns a list of shared drives used by this clustered server. These shared drives belong to the same cluster group as the [!INCLUDEmsCoName] [!INCLUDEssNoVersion] resource. Further, the [!INCLUDEssNoVersion] resource is dependent on these drives.
This function is helpful in identifying drives available to users.
The user must have VIEW SERVER STATE permission for the [!INCLUDEssNoVersion] instance.
The following example uses fn_servershareddrives to query on a clustered server instance:
SELECT * FROM fn_servershareddrives();
[!INCLUDEssResult]
DriveName
--------
m
n
sys.dm_io_cluster_valid_path_names (Transact-SQL)
sys.dm_io_cluster_shared_drives (Transact-SQL)
sys.fn_virtualservernodes (Transact-SQL)