2017-05-14 44 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

相关问题