(Brian Walker) The SQL code in Listing 1 (below) creates a system stored procedure named sp_ListFiles. The routine returns a filtered list of files found in a specified directory. The sp_ListFiles stored procedure uses the xp_cmdshell extended stored procedure that comes with SQL Server. (R)
Read More - Register for Free Membership
