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. Sahaj Quinci 21 Reputation points
    2022-03-24T10:18:46.943+00:00

    Same issue here :(

    4 people found this answer helpful.
    0 comments No comments

  2. Andrew Duckers 21 Reputation points
    2022-03-24T11:14:05.603+00:00

    Using Azure Data Studio and the Schema Compare extension works; we've also logged a ticket for the Microsoft Managed Instance team, I'll update you with any response we get....

    4 people found this answer helpful.

  3. Mark Poynter 26 Reputation points
    2022-03-23T17:02:37.64+00:00

    I get the same issue (unable to determine database platform type) for both schema and data comparisons in VS2019 and VS2022. I think they've rolled out an update for SQL Managed Instances in readiness for version 160 (i.e. SQL server 2022). My theory is this is not yet compatible with SSDT, as I can still compare all my non-MI SQL databases OK.

    As per Tim my SQL Server Data Tools for VS2019 is also version 16.0.62201.17150 . As this is controlled by the VS 2019 installer - so I can't see a way how you can upgrade SSDT to 16.0.62111.25150 even if you wanted to, as there's no stand-alone installer?

    VS2022 is using SSDT 17.0.62201.12090 and this has the same problem as VS2019.

    2 people found this answer helpful.
    0 comments No comments

  4. Johannes Gerhold 11 Reputation points
    2022-03-24T12:33:03.237+00:00

    Also having the same issue here on

    VS 2019 (16.11.11)

    with SSDT 16.0.62111.25150

    2 people found this answer helpful.
    0 comments No comments

  5. Mark Poynter 26 Reputation points
    2022-03-23T17:29:28.91+00:00

    For those that need it, I've found the following workaround that does seem to work with SQL managed instances.

    If you have the latest SSMS installed then you will also have Azure Data Studio. In Azure Data Studio there's an extension you can install for SQL Server Schema Compare. It seems to be exactly the same tool as Visual studio, just with a different look and feel.

    Personally I find Azure Data Studio a bit clunky, but at least it does the job for now.

    1 person found this answer helpful.

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.