How to write stored procedure output directly to a file on an FTP without using local or temp files?

后端 未结 6 1458
醉梦人生
醉梦人生 2021-01-02 03:54

I want to get the results of a stored procedure and place them into a CSV file onto an FTP location.

The catch though is that I cannot create a local/temporary file

6条回答
  •  萌比男神i
    2021-01-02 04:45

    Is there a server anywhere that you can use where you can create a temporary file? If so, make a web service that returns an array containing the contents of the file. Call the web service from the computer where you can create a temporary file, use the contents of the array to build the temp file and ftp it over.

    If there is no where at all where you can create a temporary file, I don't see how you will be able to send anything by FTP.

提交回复
热议问题