Export (0) Print
Expand All

GetPathLocator (Transact-SQL)

Applies To: SQL Server 2014, SQL Server 2016 Preview

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

Returns the path locator ID value for the specified file or directory in a FileTable.

Applies to: SQL Server (SQL Server 2012 through current version).

GetPathLocator(filenamespace_path)

filenamespace_path

A namespace path in the FileTable. The namespace path is of type nvarchar(max).

When the database belongs to an AlwaysOn availability group, then the GetPathLocator function accepts the virtual network name (VNN) or the computer name.

hierarchyid

You can use the GetPathLocator function when you are migrating files from a file server to a FileTable. In this scenario, you want to move the files into the FileTable, and then replace the original UNC path for each file with the FileTable UNC path. For a complete example, see Load Files into FileTables.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft