Importing BACPAC to Azure SQL Database disable the compatibility level SQL Server 2025 (170)

Yash Bhatia 20 Reputation points
2025-10-15T06:42:51.1066667+00:00

Our online SQL Server to Azure SQL Database migration (using DMS and BACPAC both) failed to achieve Compatibility Level 170 (SQL 2025). We suspect the obsolete metadata for TEXTIMAGE_ON [PRIMARY] is blocking the compatibility upgrade due to conflicts with modern LOB handling. Please provide Microsoft documentation confirming this specific blocking issue and the recommended T-SQL solution to clean this metadata without full table recreation.

Azure SQL Database
{count} votes

Answer accepted by question author
  1. Erland Sommarskog 127.4K Reputation points MVP Volunteer Moderator
    2025-10-16T09:50:00.2166667+00:00

    It seems that everything has gone OK then.

    I would guess that you are using an old version of SSMS which does not recognise compatibility level 170.

    Go to https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms to download the most recent version of SSMS 21.


0 additional answers

Sort by: Most 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.