You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report. We usually just use the schema and catalog names for metadata lookup, but I can see how that looks inconsistent. However, it's far from being obvious as some database may not support specifying a catalog this way.
Why is the catalog necessary for MSSQL server here?
We have one SQL Server instance but with two separate databases (designed as different catalogs).
One is the applications database and one is a legacy database, we just want to keep in sync, until we get rid of it.
I could create two JDBC connections and use them, but that would involve distributed transactions, wouldn't it? So using the same JDBC connection to write into both catalogs, seemed like a "smart/simple" idea.
I use spring 6.1.3 with MSSQL.
My code:
If I use this code, it generate the following SQL:
But I expected it to be:
I took a look at
TableMetaDataContext.createInsertString
which usesschemaName
andtableName
but doesn't usecatalogName
.If I use
SimpleJdbcCall
withwithCatalogName
, it works.The text was updated successfully, but these errors were encountered: