testcontainers-java icon indicating copy to clipboard operation
testcontainers-java copied to clipboard

[Enhancement]: Support the default `GO` batch separator for MSSQL

Open megla-tlanghorst opened this issue 3 weeks ago • 0 comments

Module

MSSQLServer

Proposal

Currently the separator is hardcoded here: https://github.com/testcontainers/testcontainers-java/blob/2b53c476a249b58e7f7d827f20dcdb7e6fdf4d0e/modules/database-commons/src/main/java/org/testcontainers/ext/ScriptUtils.java#L232

But almost all MSSQL tooling expects the batch separator to be GO, causing issues when passing the same scripts that can be used with sqlcmd into test containers and currently there's no way around it other than manually preprocessing the scripts beforehand.

megla-tlanghorst avatar Nov 18 '25 15:11 megla-tlanghorst