UrlProperty

Retrieves one of select properties of URL string

  • Free Function
  • SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017

Syntax:

SELECT *
FROM SQLHTTP.net.UrlProperty ( Url, Property )

Arguments:

Name Type Description
Url nvarchar(MAX) String containing a URL web address with an http, https or ftp scheme.

Property nvarchar(20) One of the following string values: AbsolutePath, AbsoluteUri, Authority, DNSSafeHost, Fragment, Host, HostNameType, Port, Query, Scheme and UserInfo as well as LastSegment and TopLevelHost.

Return Type:

varchar(MAX)

Sample Usage:

See Also: