IsExistingFolder
Checks for the existence of a folder.
- Free Function
- SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017
SELECT SQLHTTP.net.IsExistingFolder( @FolderPath )
Name | Type | Description |
---|---|---|
@FolderPath | varchar(MAX) | Full path to an existing folder |
bit
0 = Folder does NOT exist
1 = Folder EXISTS
Accessing the file system will be performed in the context of the SQL Server instance process. You can set SQL Server to run using a specific network account, or a Local System Account.
1 2 3 4 5 6 7 8 |
DECLARE @FolderPath varchar(MAX) --Assign a path to a folder that the executing user has read permissions on SET @FolderPath = SQLHTTP.net.TempPath() SELECT SQLHTTP.net.IsExistingFolder(@FolderPath) |
1 2 3 4 5 |
----- 1 |
- CodePageEncodings
- FileCopy
- FileDecrypt
- FileDelete
- FileEncrypt
- FileMove
- FileRead
- Files_To_Table
- FileWrite
- FolderCopy
- FolderCreate
- FolderDelete
- FolderMove
- Folders_To_Table
- GlobalTable_To_File
- IsExistingFile
- IsExistingFolder
- TempPath
- ZipEntryAppend
- ZipEntryRemove
- ZipExtract_To_Folder
- ZipExtract_To_Table