Folders_To_Table
Returns a list of folders as a table
- Stored Procedure
 - SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017
 
EXEC SQLHTTP.net.Folders_To_Table @FolderPath
| Name | Type | Description | 
|---|---|---|
| @FolderPath | varchar(MAX) | Full path to an existing folder | 
| Column name | Data type | Description | 
|---|---|---|
| RowID | int | Row Index | 
| FolderName | varchar(4000) | The Name of the folder | 
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 9 10 11  | 
						SET NOCOUNT ON DECLARE @Folders TABLE(RowID bigint, FolderName nvarchar(4000)) INSERT INTO @Folders(RowID, FolderName) EXEC SQLHTTP.net.Folders_To_Table 'C:\Windows' SELECT TOP 5 * FROM @Folders  | 
					
| 
					 1 2 3 4 5 6 7 8 9  | 
						RowID       FolderName ----------- --------------------------- 1           c:\Windows\addins 2           c:\Windows\appcompat 3           c:\Windows\AppPatch 4           c:\Windows\AppReadiness 5           c:\Windows\assembly  | 
					
- 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