Migrate FileTables


Documentation Index



API Documentation:


Migrating Tables of type FileTable

As noted in the limitations section, tables of type FileTable are seeded but not tracked for changes.

Each record of a File Table points to a physical files stored in the file system. Due to this reason, in certain scenarios the initial seeding might fail with transport-level errors (i.e."A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The semaphore timeout period has expired"), especially in a cross-region hybrid replication scenarios. For information regarding how to resolve transport-level errors, see sections (8) & (9) in the prerequisites section.

Alternatively you can follow below steps to manually seed tables of type FileTable.

  1. During the initial replication setup, go to the [Advanced], and exclude the File Tables (see the SQL Server-to-SQL Server Getting Started section). The tables will be created, but not seeded.
  2. Find the location of the physical files associated with the File Tables by running select FileTableRootPath(), locate the folder, copy and upload files to the replica SQL Server:

  3. On the replica SQL Server, delete record form the File Tables (if applicable, i.e. if partial seeding was done), find the location of the physical files, paste the files downloaded form the source.