问题
I have earlier used Microsoft SQL Server Management Studio here with Azure SQL here but I want to try DbVis (a platform independent alternative). I am trying DbVis in OSX. I could find JDBC driver for SQL Server here but not sure whether this required to use DbVis with Azure SQL in OSX.
Which driver do I need to select to connect to the Azure SQL in DbVis?
Trial 1. Error with admin credentials
The settings are
- Server name
myDB.database.windows.net
asDatabase URL
- Azure SQL admin as
Database userid
- Azure SQL password as
Database Password
by which the error such that
An error occurred while establishing the connection: The selected Driver cannot handle the specified Database URL. The most common reason for this error is that the database URL contains a syntax error preventing the driver from accepting it. The error also occurs when trying to connect to a database with the wrong driver. Correct this and try again.
Potentially related
Connecting to Azure SQL in DB Vis under Ubuntu here (Q&A thread)
Connect to Azure Management Data in Db Vis here (some article)
Ticket in Db Vis asking for instructions to connect to Azure SQL dbs in Db Vis here.
回答1:
I have no issue with DBVisualizer/jTDS driver though.
From what i see, the first error simply indicates you have error in your connection string, i'd suggest you open Azure Management Portal and copy the corresponding jdbc connection string from there. The second error indicates you cannot ping server in database URL mode, switch to server info mode and you are good to go then.
回答2:
According to this here, Azure is not officially supported in Db Vis:
Note that Azure is not an officially supported Database in DbVisualizer. Having said that we do have customers running DbVisualizer against Azure.
You can connect using the Jtds bundled driver or the bundled SQL Server (Microsoft) driver.
You might need to connect using SSH as described in http://confluence.dbvis.com/display/UG95/Using+an+SSH+Tunnel
where the op has already tried the JTDS driver but apparently it is somehow different to JTDS bundled driver? This is being further discussed with the support.
It is not clear here why the SSH tunneling is required here.
来源:https://stackoverflow.com/questions/43968956/which-db-driver-to-use-dbvisualiser-with-azure-sql