sys.dm_federation_operations (Azure SQL Database)
Applies To: SQL Server
Returns one row per SPLIT or DROP operation on a federation. Each row contains information on the progress and any error conditions for the operation.
The current implementation of Federations will be retired with Web and Business service tiers. Consider deploying custom sharding solutions to maximize scalability, flexibility, and performance. For more information about custom sharding, see Scaling Out Azure SQL Databases.
Applies to: Azure SQL Database.
Unique operation id that identifies the federation operation in the system.
Federation operation description (‘CREATE FEDERATION’, ‘ALTER FEDERATION SPLIT’ or ‘ALTER FEDERATION DROP’ or ‘DROP FEDERATION’)
The target federation_id for the federation operation from sys.federations system view.
Name of the federation for the given federation_id. This information is mostly redundant except for operations like DROP FEDERATION where federation metadata is immediately cleaned up but federation operation may continue to execute.
The UTC time at a regional SQL Database datacenter when the member filtered copying was initiated.
The UTC time at regional SQL Database datacenter when the information on the federation operation has last been updated.
The percentage of rows that have been copied. Values range from 0 to 100. SQL Database may automatically recover from some errors, such as failover, and restart the member filtered copy. In this case, percentage_complete would restart from 0.
You must be connected to the database used to start the federation operation, and you must have VIEW DATABASE STATE permissions.
The primary key for this view is federation_operation_id, which contains a randomly generated value. In combination with sys.dm_federation_operation_members, this view provides information on the progress of an operation
Information is reported as long as an operation is being executed, and is cleaned up immediately after the operation completes.
This view exists in all databases, but returns no rows in databases that do not contain federations, or do not have any ongoing operations on federations. This view also exists in federation members, but will never return rows as federation members cannot contain federations or execute federation operations.
The operations types in sys.dm_federation_operations and the member_type in sys.dm_federation_operation_members (Azure SQL Database) are correlated as follows:
CREATE FEDERATION: federation_operation_type = ‘CREATE FEDERATION’
All member types will be ‘DESTINATION’ for member_type in sys.federation_operation_members.
ALTER FEDERATION: federation_operation_type = ‘ALTER FEDERATION SPLIT’ or ‘ALTER FEDERATION DROP’
The source will be marked as ‘SOURCE’ for member_type in sys.federation_operation_members.
The destination will be marked as ‘DESTINATION’ for member_type in sys.federation_operation_members.
DROP FEDERATION federation_operation_type = ‘DROP FEDERATION’
All member types should be ‘SOURCE’ for member_type in sys.federation_operation_members.