fn_servershareddrives function returns the names of shared drives used by the clustered server in sql server.
Syntax of fn_servershareddrives Function :
fn_servershareddrives ( )
Return type of fn_servgershareddrives function is a nchar(1). It returns drive name of shared drive.
Examples of fn_servershareddrives Function :
Example 1 : Use of fn_servershareddrives function in select clause
FROM ::fn_servershareddrives()
Output
DriveName
D
Above example returns shared drive named as D.