Gerrit Mantel
Programs SQL_SCALAR_FUNCTION - fun_DriveProperty_VolName

Main program

Namefun_DriveProperty_VolName
Type_descSQL_SCALAR_FUNCTION
CommentSQLServer User-Defined Function

PURPOSE
Return the volume name of a given drive (or remote share)

Return value (VARCHAR(32)):
NULL - Drive does not exist
name - Volume name

EXAMPLES
SELECT dbo.fun_DriveProperty_VolName ('C:')
os

SELECT dbo.fun_DriveProperty_VolName ('B:')
NULL

HISTORY
2000-01-01 - Created function
2024-02-09 - Changed history table

TAGS
<program>
<description>Return the volume name of a given drive (or remote share)</description>
<generic>1</generic>
<author>Gerrit Mantel</author>
<created>2000-01-01</created>
<lastmodified>2024-02-09</lastmodified>
</program>
DescriptionReturn the volume name of a given drive (or remote share)
Minversion
Generic1
AuthorGerrit Mantel
Created2000-01-01 00:00:00
Lastmodified2024-02-09 00:00:00
Xp_cmdshell0
Ole_automation1
Subprogram_cnt0
Sourcecode