FileCopy

Copies a single file from source to destination

  • Stored Procedure
  • SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017

Syntax:

EXEC SQLHTTP.net.FileCopy @SourceFilePath, @DestinationFilePath

Arguments:

Name Type Description
@SourceFilePath varchar(MAX) Full path to the existing source file

 

@DestinationFilePath varchar(MAX) Full path to the non-existing destination file.

Remarks:

Accessing the file system will be performed in the context of the SQL Server instance process. You can set SQL Server to run using a specific network account, or a Local System Account.

Sample Usage:

See Also: