ZipEntryAppend

Adds files and folders to a new or existing zip archive

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

Syntax:

EXEC SQLHTTP.net.ZipEntryAppend @ZipFilePath, @ZipEntryPath

Arguments:

Name Type Description
@ZipFilePath varchar(4000) Full path to a new or existing zip archive
@ZipEntryPath varchar(4000) Full path to a file or folder within the zip archive

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:

Add a file to a new or existing zip archive:
Add a folder and its content to a new or existing zip archive:

See Also: