Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flyway does not support Azure Arc SQL server #4054

Open
eliufen2020 opened this issue Apr 1, 2025 · 5 comments
Open

Flyway does not support Azure Arc SQL server #4054

eliufen2020 opened this issue Apr 1, 2025 · 5 comments

Comments

@eliufen2020
Copy link

Hi Flyway team,
When we use Flyway with latest version to connect to Azure Arc SQL server, it failed!
The Azure Arc Images we used include:
mcr.microsoft.com/arcdata/arc-sqlmi:v1.29.0_2024-04-09
mcr.microsoft.com/arcdata/arc-monitor-collectd:v1.29.0_2024-04-09
mcr.microsoft.com/arcdata/arc-ha-supervisor:v1.29.0_2024-04-09
mcr.microsoft.com/arcdata/arc-monitor-fluentbit:v1.29.0_2024-04-09

I wonder whether or not Flyway support Azure Arc SQL server?
Could you please take a look. Your advice is great appreciated!

Error Logs:
Image

@JasonLuo-Redgate
Copy link

JasonLuo-Redgate commented Apr 1, 2025

Hi @eliufen2020 ,

Many thanks for reporting this issue to us.

The error log indicates that the returned Engine Edition value is 10, which is not currently supported by Flyway.

The Engine Edition values currently supported by Flyway are: 1,2,3,4,5,6,8,9 (referring to

)

More info about Engine Edition:
https://learn.microsoft.com/en-us/sql/t-sql/functions/serverproperty-transact-sql?view=sql-server-ver16

@eliufen2020
Copy link
Author

eliufen2020 commented Apr 2, 2025

Hi @JasonLuo-Redgate
Thank you for your analysis, I display the version of SQL server, it seems Microsoft Azure SQL Managed Instance should belong to the engine edition 8? does FLYWAY plan to support it?

sqlcmd -C -S localhost -U abc -d abc-edge-0 -Q "SELECT @@Version;"


Microsoft Azure SQL Managed Instance - Azure Arc - 16.0.5290.8214 (X64)
Mar 25 2024 07:48:30
Copyright (C) 2022 Microsoft Corporation
General Purpose (64-bit) on Linux (Ubuntu 20.04.6 LTS)

(1 row affected)

Database Engine edition of the instance of SQL Server installed on the server.
1 = Personal or Desktop Engine (Not available in SQL Server 2005 (9.x) and later versions.)
2 = Standard (For Standard, Web, and Business Intelligence.)
3 = Enterprise (For Evaluation, Developer, and Enterprise editions.)
4 = Express (For Express, Express with Tools, and Express with Advanced Services)
5 = SQL Database
6 = Azure Synapse Analytics
8 = Azure SQL Managed Instance
9 = Azure SQL Edge (For all editions of Azure SQL Edge)
11 = Azure Synapse serverless SQL pool

@JasonLuo-Redgate
Copy link

Yes, if Engine Edition is 8, Flyway should work.

@eliufen2020
Copy link
Author

But Flyway did not work. I wonder whether your team will take a look at the issue? If Microsoft Azure SQL Managed Instance - Azure Arc - 16.0.5290.8214 (X64) belong to engine edition 8, It is a bug.

@JasonLuo-Redgate
Copy link

Hi @eliufen2020 ,

Sorry for the confusion. The provided log shows that, in your case, the engine edition returned to Flyway from the server is 10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants