SQL scripts should have "USE <database>" in the header on SQL Server


there is a ticket for this topic https://liquibase.jira.com/browse/CORE-2451. This was merged and released in 3.4.1, but I think this should be optional.

We use Liquibase to generate SQL and we don’t know the target database name and we don’t have execution of SQL under control. We only have copy of database which we use to generate SQL scripts and we keep it in sync.

So my goal is to remove “USE [database]”, because it is integrator responsibility to run thw script under right database.

Any idea how to live with this. Ok, I can remove it from SQL script manually, but…

Thanks to all