Is SQL Managed Instance no longer compatible with SSDT Schema compare?

Tim Eldridge 206 Reputation points
2022-03-23T10:14:47.91+00:00

As of the last few days, I am no longer able to do SQL schema compare for a database in SQL Managed Instance in Visual Studio using SQL Server Data Tools. This was working last week but now I get the error "Source is unavailable: dbname". After manually editing the .scmp file to tweak the connection string, I get a slightly different error "unable to determine database platform type". When I setup the source/destination connection it can connect to the SQL Managed instance OK using Azure AD - I know this because I get a list of databases in the "Default database" dropdown. However, when I click the "Compare" button to do the actual compare I get the error.

This functionality is still working when connecting to Azure SQL Database, but not Azure SQL Managed Instance. Is the latest SQL Managed instance version (Microsoft SQL Azure (RTM) - 12.0.2000.8 Feb 25 2022 16:04:35)) no longer compatible with SSDT?

SQL Server | Other
{count} votes

19 answers

Sort by: Most helpful
  1. Tim Eldridge 206 Reputation points
    2022-05-18T09:37:36.4+00:00

    The problem is now resolved for me!

    I have installed Visual Studio 2019 community edition, enabled preview features and schema compares are now fully functional again. Full details of my VS 2019 version are shown below:

    Microsoft Visual Studio Community 2022 (64-bit) - Preview
    Version 17.3.0 Preview 1.0

    1 person found this answer helpful.
    0 comments No comments

  2. Mark Poynter 26 Reputation points
    2022-05-25T16:45:34.877+00:00

    Also now working for me using Visual Studio 2022 Version 17.2.2

    1 person found this answer helpful.
    0 comments No comments

  3. Tom Phillips 17,781 Reputation points
    2022-03-23T16:12:36.72+00:00

    I am not having that issue with SSDT. Please verify you are using the current version of SSDT.

    Mine is:
    SQL Server Data Tools 16.0.62111.25150

    Running on
    Microsoft Visual Studio Professional 2019
    Version 16.11.10


  4. Andrew Duckers 21 Reputation points
    2022-03-25T08:12:03.22+00:00

    Update on the ticket from Microsoft - "The problem has been mitigated". I can now perform a schema compare against a managed instance using Visual Studio....


  5. Andrew Duckers 21 Reputation points
    2022-03-25T09:59:04.93+00:00

    We haven't updated anything locally so the change must have been within the managed instance or Azure, I would also assumed any fix will be applied by Azure region/data centre/zone so it will eventually (rather than immediately) be fixed on all impacted resources.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.