Hi everybody,
I have trouble writing to a Azure SQL database using JDBC. This is the error message:
Reference to database and/or server name in 'dbo.schema.table' is not supported in this version of SQL Server.
There is not much information about this error, it seems to have something with Azure SQL not being a full-blown MS SQL server. Also adding `dbo` is not necessary in this case.
My JDBC string looks like this:
jdbc:sqlserver://censored.database.windows.net:1433;database=censored;encrypt=true;trustServerCertificate=false;hostNameInCertificate=*.database.windows.net;loginTimeout=30;
I’ve configured the JDBC connection like this:
This method (putting `dbo` as schema and `schema.table` as table name) is the only one that appears to work. All other combinations omitting `dbo` result in errors like these:
Table 'dbo.schema.table' does not exist or PDB is incorrect. Make sure the correct PDB was specified
Any ideas? Has anybody else already connected Azure SQL via JDBC? How did you configure it?
Cheers, Christoph