Forum Discussion

TimoW's avatar
TimoW
Advocate I
1 year ago
Solved

Mirroring Azure SQL DB is not working

Hello everyone,

 

I am currently testing the mirroring functionality for our Azure SQL Database within Microsoft Fabric. Initially, everything worked fine. Mirroring tables succeeded for those with primary keys. However, some tables did not have primary keys, so I added them and attempted the mirroring process again. Unfortunately, I encountered the following error:

Code: SqlChangeFeedError
Type: UserError
Message: Cannot enable fabric link on the database because the metadata tables are corrupted.
ArtifactId: 8a8dfc49-31e6-4509-8fa8-c00357b74069

I have searched online but haven't found a solution. I also ran a DBCC CHECKDB on the database, which did not report any errors.

Has anyone experienced this issue or have any suggestions on how to resolve it?

Thank you in advance for your help!

  • I heard back from MS Support about my similar issue. if you 

    GRANT SELECT, ALTER ANY EXTERNAL MIRROR, VIEW PERFORMANCE DEFINITION TO [User];

    for the managed identity that is accessing your Azure SQL DB from Fabric, the metadata will not become corrupted using my reproduction steps. This does not, however, correct a DB where metadata has already become corrupted.

     

    Note that the difference between the grant statement above and the official documents is that the official docs do not mention the need for VIEW PERFORMANCE DEFINITION permission.

7 Replies