Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving files
Message
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Title:
Miscellaneous
Thread ID:
01300829
Message ID:
01300838
Views:
10
>Hi All, is it possible to copy or move files from within a sp ?, e.g. if I have a collection of files in \\myserver\myfolder , can I move or copy them to \\myserver\myotherfolder ?

You can use xp_cmdshell system sproc. See http://www.nigelrivett.net/SQLAdmin/s_CopyLatestBackup.html, for example.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform