fn_servershareddrives (Transact-SQL)

Returns the names of shared drives used by the clustered server.

Important

This Microsoft SQL Server 2000 system function is included for backward compatibility. We recommend that you use sys.dm_io_cluster_shared_drives instead.

Syntax

fn_servershareddrives()

Tables Returned

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.

Remarks

fn_servershareddrives returns a list of shared drives used by this clustered server. These shared drives belong to the same cluster group as the Microsoft SQL Server resource. Further, the SQL Server resource is dependent on these drives.

This function is helpful in identifying drives available to users.

Permissions

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

Examples

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

SELECT * FROM fn_servershareddrives()

This is the result set:

DriveName

--------

m

n

See Also

Reference

sys.dm_io_cluster_shared_drives
fn_virtualservernodes (Transact-SQL)

Help and Information

Getting SQL Server 2005 Assistance

Change History

Release History

17 July 2006

New content:
  • Added note about deprecation, link to sys.dm_io_cluster_shared_drives topic.
Changed content:
  • Permissions are at the instance level, not the server level.