Logo 
Search:

SQL Server Articles

Submit Article
Home » Articles » SQL Server » System FunctionsRSS Feeds

fn_servershareddrives Function

Posted By: Sarita Patel     Category: SQL Server     Views: 1441

This article explains about fn_servershareddrives function in sql server with examples.

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 

SELECT  *
FROM     ::fn_servershareddrives()

Output
DriveName
D

Above example returns shared drive named as D.
  
Share: 


Didn't find what you were looking for? Find more on fn_servershareddrives Function Or get search suggestion and latest updates.

Sarita Patel
Sarita Patel author of fn_servershareddrives Function is from United States.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!