After upgrading from Grails 3.2.5 to 3.2.9 I started receiving the SQL Server driver exception (using sqljdbc42.jar):
com.microsoft.sqlserver.jdbc.SQLServerException: com.microsoft.sqlserver.jdbc.SQLServerException: The database name component of the object qualifier must be the name of the current database.
After downgrading to Grails 3.2.7 this stopped again. I am calling a Stored Procedure in different DB but the code works in 3.2.7 and before and not in 3.2.9. I tried upgrading the SQL Server JDBC version to the value below with to no avail.
compile group: 'com.microsoft.sqlserver', name: 'mssql-jdbc', version: '6.1.7.jre8-preview'
Grails 3.2.9 includes Groovy 2.4.10 which is an upgrade from Groovy 2.4.7. I see issues in Groovy Sql in Groovy 2.4.10 that did not exist in 2.4.7 (which is what I was using with Grails 3.2.7). Hope this is helpful to someone else looks to be fixed in Groovy 2.4.11 which might end up in Grails 3.2.10. Below is a URL to the issue: