An Azure relational database service.
Hi Hansen, David-E,
Thanks for sharing the details, I understand how confusing this behavior can be.
What you’re encountering is a known limitation related to how SQL Server Migration Assistant for Sybase interacts with Azure SQL Managed Instance.
SSMA performs some internal validation queries during connection and schema assessment, and in this case it is referencing master.sys.databases. While Managed Instance is highly compatible with SQL Server, it does enforce certain restrictions around system metadata access and cross-database references. As a result, queries that work on full SQL Server may fail on Managed Instance with the error you’re seeing.
To move forward, I recommend first updating SSMA to the latest version, as newer builds include fixes and improvements for Azure SQL compatibility. You can download it here: https://learn.microsoft.com/sql/ssma/sybase/sql-server-migration-assistant-for-sybase
Also, ensure that the connection in SSMA is made directly to the target user database rather than relying on the default master database context, as this can help avoid triggering restricted metadata queries.
If the error occurs during schema assessment or validation, you can try proceeding directly with schema conversion and migration. In many cases, the migration itself completes successfully even if validation encounters this limitation.
If the issue continues, a practical workaround is to use SSMA primarily for schema conversion, then deploy the generated schema using SSMS or Azure Data Studio, and handle data migration separately using tools such as Azure Data Factory or bcp.
This behavior aligns with documented differences between SQL Server and Managed Instance, particularly around system views and metadata access. You can review more details here: https://learn.microsoft.com/azure/azure-sql/managed-instance/transact-sql-tsql-differences-sql-server
Additional reference on system catalog views: https://learn.microsoft.com/sql/relational-databases/system-catalog-views/catalog-views-transact-sql
SSMA does support Azure SQL Managed Instance, but certain internal metadata queries like those referencing master.sys.databases can hit platform-specific limitations. Updating SSMA and adjusting the connection and workflow typically resolves the issue.
If the problem persists, collecting SSMA logs and sharing them would help with further investigation.