March 3, 2014 at 6:08 am
Dear all
i want to check the existecn of file on ftp when ever any one runs
the stored proc , so that he can get latest status.
please tel me how it can be done form stored proc.
yorus sincerly
March 3, 2014 at 6:39 am
TSQL pretty much limits you to looking inside databases. For anything outside of a database , in your case FTP and files, i think i'd create an outside process to do the check, and store the results of the check in a database, instead. TSQL cannot do that directly.
you can shoehorn it in using xp_cmdshell, or CLR for example, but for a stored procedure to do it? does it need to execute in real time, or can there be a delay? why when the proc is called, isntead of checking for the file, and calling the proc?
so for example, a powershell script could check whether file(s) exist (on ftp, local, network, whatever) and then update a table with that status. it could call the right processes , since it found a file,
Lowell
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply