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).
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.