Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.
DECLARE @ReturnCode int declare @cmd sysname declare @NumberKey sysname set @NumberKey = 'B07-100001' set @cmd = 'dir "E:\Adept Technologies\Documents\Building\'+@NumberKey+'\'+@NumberKey+'_Expired*.doc" /b' exec @ReturnCode = master..xp_cmdshell @cmd, no_output -- If @ReturnCode is 0, file exists -- If @ReturnCode is 1, file does NOT exist PRINT @ReturnCode
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Convert results from the query output to insert into sql table||3||29|
|Question about Common Table Expressions||3||45|
|SQL - Aging Report - Display Months with no data||8||43|
|STUFF function - proper use to update column?||6||16|
Join the community of 500,000 technology professionals and ask your questions.