SQL SERVER | Elencare i file presenti in una cartella
EXEC sp_configure 'show advanced options', 1 GO RECONFIGURE GO EXEC sp_configure 'xp_cmdshell', 1 GO RECONFIGURE GO DECLARE @Command VARCHAR(1000) SET @Command = 'dir c:\*.txt /b /s' DECLARE @FilesInAFolder TABLE (FileNamesWithFolder…