2017-05-14 186 views
2

我早些時候使用Microsoft SQL Server Management Studio here與Azure SQL here,但我想嘗試DbVis(與平臺無關的替代方案)。我正在嘗試OSX中的DbVis。我可以找到SQL Server的JDBC驅動程序here,但不確定是否需要在OSX中將DbVis與Azure SQL結合使用。哪些數據庫驅動程序可以將DbVisualiser與Azure SQL結合使用?

我需要選擇哪個驅動程序才能連接到DbVis中的Azure SQL?

enter image description here

enter image description here

試用1錯誤與管理員憑據

的設置

  • 服務器名稱myDB.database.windows.netDatabase URL
  • Azure的SQL管理員爲Database userid
  • Azure的SQL密碼Database Password

通過該錯誤使得

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. 

enter image description here

可能相關

  1. Ubuntu的here(Q &線程)在連接到Azure的SQL在DB可見

  2. 連接以dB Azure管理數據可見here(一些文章)

  3. 票務用dB可見要求指示連接到Db Vis here中的Azure SQL dbs。

+1

當您嘗試此驅動程序時發生了什麼?你有錯誤嗎? –

+0

@ Nick.McDermaid在Db Vis中將管理員憑證和服務器名稱作爲「Database URL」添加了上述試用1的錯誤輸出。 – hhh

+1

您是否設法使用其他方式連接到此Azure服務器?你可以ping服務器嗎?您是否按照本文打開了Azure防火牆:https://docs.microsoft.com/en-us/azure/sql-database/sql-database-firewall-configure –

回答

1

雖然我對DBVisualizer/jTDS驅動程序沒有任何問題。 enter image description hereenter image description here

從我看到的情況來看,第一個錯誤只是表明您的連接字符串中有錯誤,我建議您打開Azure管理門戶並從那裏複製相應的jdbc連接字符串。 enter image description here 第二個錯誤表示您無法在數據庫URL模式下ping服務器,切換到服務器信息模式,然後您就可以繼續操作。

0

根據這一here,Azure是不正式支持用dB顯示:

注意,Azure是不是 DBVisualizer中正式支持的數據庫。話雖如此,我們確實有客戶運行 針對Azure的DbVisualizer。

您可以使用JTDS連接捆綁驅動程序或捆綁的SQL 服務器(微軟)驅動程序。

您可能需要使用SSH爲 http://confluence.dbvis.com/display/UG95/Using+an+SSH+Tunnel

所述OP已經嘗試了JTDS司機描述的連接,但顯然這是有些不同,以JTDS捆綁的驅動程序?這一點正在得到支持的進一步討論。

這裏還不清楚爲什麼在這裏需要SSH隧道。

+1

我想你需要SSH隧道的原因是防火牆規則。想象一下你只將SQL數據庫暴露給你的辦公室(IP地址),在連接到SQL數據庫之前你必須回到辦公室。 –

+1

我注意到DBVisualizer爲SQL Server(DataDirect)提供了一個支持[SQL Server Azure JDBC連接](https://www.progress.com/jdbc/microsoft-sql-azure)的鉤子。 –

+0

@Sumit Sarkar什麼是btw jDTS和JDBC的區別? – hhh

相關問題