Gerrit Mantel
Programs SQL_SCALAR_FUNCTION - fun_FileProperty_Name

Main program

Namefun_FileProperty_Name
Type_descSQL_SCALAR_FUNCTION
CommentSQLServer User-Defined Function

PURPOSE
Return the name of a given file.

The returned name includes the extension name.

Return value (VARCHAR(256)):
NULL - File does not exist
name - Name of the file

EXAMPLES
SELECT dbo.fun_FileProperty_Name('C:\oneTouch_drive.cvf')
oneTouch_drive.cvf

SELECT dbo.fun_FileProperty_Name('C:\xxxx.txt')
NULL

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

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