SQL Server: ALTER DATABASE ... SET SINGLE_USER not supported #1426
What version of Flyway are you using?
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)
What database are you using (type & version)?
MS SQL Server 2014
What operating system are you using?
What did you do?
(Please include the content causing the issue, any relevant configuration settings, and the command you ran)
Running a single sql migration file, containing the command
What did you expect to see?
Flyway completing with success
What did you see instead?
Flyway completing with error:
This is ok, I guess there is no way around it.
The text was updated successfully, but these errors were encountered:
In case this helps anyone:
I landed on this page trying to write a migration that uses
It seems to work for the happy path. To test the error path, I changed
We have found a way to fix this. Flyway now uses a single connection for SQL Server in combination with session-level application locks. On top of this we added automatic non-transactional statement detection to automatically run migrations containing