I want to check the existence of file on ftp when ever any one runs the stored proc

  • 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

  • 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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply