Afternoon,I have a great stoerd proc that I found that almost does exactly what I need. Except I need it to say give me all files that start with doors_IR_todaysDate_*.txt -- This builds the file name for todayDECLARE @FileName VARCHAR(30) SET @FileName = 'doors_IR_' --Part of the file name you identified in first posting + REPLACE( CONVERT(CHAR(8),GETDATE(),112) --Returns today's date as mm/dd/yy ,'/','') --Replaces the slashes with nothing + '.txt' --Extension name for files you identified in first posting
How do I add "like" to this declare statement?Thanks in advance.Laura