Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. FROM SQL SERVER 2005 DOWNLOAD FILES FROM PSFTP

FROM SQL SERVER 2005 DOWNLOAD FILES FROM PSFTP

Scheduled Pinned Locked Moved Database
databasesql-serversysadminhelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    ps_prakash02
    wrote on last edited by
    #1

    Hi, My Requirement: My Client will place inputs files in psftp. we need to write a procedure in sql server 2005, which has to periodically check the psftp for files if any files found in psftp then the sql procedure has to download those files to local folder. Actually i have written a batch file which login to psftp and download the files to local folder. if i run the batch file manually the batch file download files from PSFTP to local folder, but if i execute the same batch file in management studio its showing as executing but its not doing anything and after some seconds management studio is not responding. if anybody can tell me how to do this it will be great help for me. the command i used is exec master..xp_cmdshell '\\server1\file\download.bat' Thanks & Regards, P.Prakash

    J 1 Reply Last reply
    0
    • P ps_prakash02

      Hi, My Requirement: My Client will place inputs files in psftp. we need to write a procedure in sql server 2005, which has to periodically check the psftp for files if any files found in psftp then the sql procedure has to download those files to local folder. Actually i have written a batch file which login to psftp and download the files to local folder. if i run the batch file manually the batch file download files from PSFTP to local folder, but if i execute the same batch file in management studio its showing as executing but its not doing anything and after some seconds management studio is not responding. if anybody can tell me how to do this it will be great help for me. the command i used is exec master..xp_cmdshell '\\server1\file\download.bat' Thanks & Regards, P.Prakash

      J Offline
      J Offline
      Jan Wild
      wrote on last edited by
      #2

      I have the same problem. Did you found a solution?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups