DECLARE @Path nvarchar(500) SET @Path = 'C:\ KWS\' --Change the path' DECLARE @FindFile TABLE (FileNames nvarchar(500) ,depth int ,isFile int) INSERT INTO @FindFile EXEC master.sys.xp_DirTree @Path,0,1 SELECT FileNames FROM @FindFile WHERE isFile=1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)