FTP_FolderRead

Returns the content of a directory on a remote FTP Server

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

Syntax:

EXEC SQLHTTP.net.FTP_FolderRead @URL, [@UserName], [@Password], [@ShowDetails], [@StatusCode], [@StatusDescription]

Arguments:

Name Type Description
@URL nvarchar(4000)

Required. FTP address starting with ftp:// 

@UserName nvarchar(200)

Optional. Leave blank (NULL) for anonymous connections 

@Password nvarchar(200)

Optional. Leave blank (NULL) for anonymous connections 

@ShowDetails bit

Optional. Boolean value that indicates whether only paths and names are retrieved (0) or whether additional information is retrieved as well (1).

Default: 0 (false)

@StatusCode int

Optional. Output Parameter. Numeric status of the response. 

@StatusDescription nvarchar(MAX) Optional. Output Parameter. Status Description returned with the response.

Sample Usage:

Returns a list of file names in a specified directory
Returns a detailed list of files in a specified directory

See Also: