Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

xp_cmdshell to Copy Document based on ID

$
0
0

Hi all,

Is it possible to use xp_cmdshell to copy a document on the server to a shared folder using the code for the document.

My example is - 

A sql table with Code and FileLocation. 

I know the codes for the documents but not where they are saved.

Can i use xp_cmdshell to set the code which will then correspond to the right document and then copy that to a share I set in the sql command?

Thanks


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>