Show Azure SQL as SQL Server to client

Manuel Krummenacher 21 Reputation points
2022-10-19T15:23:24.147+00:00

Hello,

is it possible to let Azure SQL identify itself as SQL Server 2016? I would like to bring a legacy application to the cloud, but it checks the version and refuses to connect to Azure SQL although technically possible. I have set compatibility level to 130 without effect. The application seems to look at "@@version" or something.

Thank you!

Azure SQL Database
0 comments No comments
{count} votes

Accepted answer
  1. Michael Taylor 60,161 Reputation points
    2022-10-19T15:32:45.81+00:00

    You cannot get Azure SQL to change its version just like you couldn't get a SQL Server 2019 to return a different value. If an app is hard locked to a version of SQL then I'd say the app is broken and needs to be fixed. I would contact the app manufacturer and ask about it. Most likely they have an updated version.

    Personally I think you should either get a newer version of the app, migrate to a different app that has better upgrade policies or stick with the existing app and not use Azure SQL. You could still put the DB in the cloud by setting up a VM (lift and shift in the cloud world) that hosts your SQL Server 2016 instance and then have the app talk to it. That is really all Azure SQL is. But you are responsible for keeping the VM and SQL up to date, ensuring there is a database backup and managing the DB instance so you've lost all the benefits of moving to the cloud in my opinion. Still, this would be a step towards migrating to a pure cloud DB.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Manuel Krummenacher 21 Reputation points
    2022-10-19T15:49:58.677+00:00

    Thank you for your answer! The manufacturer does not support Azure SQL and seems to be critical of the cloud. So I hoped that there would be a way without involving him. Azure SQL would have been an easy way to get rid of the server on premises. I will speak to the manufacturer.

    0 comments No comments

Your answer

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