Cannot export Azure SQL database


Cannot export Azure SQL database



When I try to export my database via the 'Export' button in the Azure portal, I get the following error:


Error encountered during the service operation.
Could not extract package from specified database.
The element DataSyncEncryptionKey_8d263adb59574052847134070b69d73d is not supported in Microsoft Azure SQL Database v12.



Though I did at one point try the DataSync service, I never ended up using it and am certainly not using it now. I regret even trying this service because it created schemas in my database that I do not know how to remove completely.



Now, it seems that these schemas are preventing me from exporting my database.



At the very least, it would be nice to resolve this error. However, it would be better if I could remove all traces of the DataSync service.



Please note that I have already used the script in the accepted solution to this question: How to remove SQL Azure Data Sync objects manually. That removed the DataSync schema but I am still left with the 'dss' and 'TaskHosting' schemas.



I have also tried emailing support, as recommended by the accepted solution in this thread: https://social.msdn.microsoft.com/Forums/azure/en-US/8b68b44b-c98a-4b38-8aab-36a30a7fafd9/the-element-datasyncencryptionkeyid-is-not-supported-in-microsoft-azure-sql-database-v12-when?forum=ssdsgetstarted. That email simply bounced back.



Additionally, if I go into Azure portal, it does not show any sync groups or sync agents whatsoever.




1 Answer
1



I hope you have asked this question prior to proceed performing the steps outlined on those old forum threads that were created when SQL Data Sync 2.0 did not exist. SQL Data Sync is no longer in preview, this month went to GA and has a deprovision utility available.



On the computer where you installed SQL Agent, under the c:program files (x86)Microsoft SQL Azure Data Sync directory you should find an utility named deprovisionUtil.exe. If you run it with the switch /F it will remove the DSS schema and all its objects.



If this is not possible now, please create a support ticket. Azure Support will clean up the sync database.





Thank you so much for your reply. I have never installed the SQL Agent on my local computer. I am on a Mac. I was using sync between two Azure databases - not a local PC. Unfortunately, I do not have a paid support plan, so I cannot create a support ticket. Is paying for a support plan my only option now?
– Fonnae
2 days ago






Thinking more about this, I do have access to a Windows PC with SSMS and so I suppose I could install the SQL Agent and attempt to use the utility like you described but I'm not sure if that is appropriate given that I have never used it before.
– Fonnae
2 days ago





It is difficult to know to what extent you manually deleted objects and what is left. Try to establish a sync between that PC and your SQL Azure Database and if successful then use the deprovision utility, but this may not work.
– Alberto Morillo
2 days ago






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

PySpark - SparkContext: Error initializing SparkContext File does not exist

List of Kim Possible characters

Python Tkinter Error, “Too Early to Create Image”