RJDBC ライブラリをインストールしましたが、データベースに接続できません。RODBC を使用すると同じ接続文字列が機能するため、RJDBC が接続できない理由がわかりません。解決に向けてご指導いただけますと大変ありがたく存じます。MAC OSX 10.8.2 で R を使用しています
drv <- JDBC("com.microsoft.sqlserver.jdbc.SQLServerDriver","/Library/Java/Extensions/sqljdbc4.jar", "‘")
conn <- dbConnect(drv, "jdbc:sqlserver://data.rsquaredltd.com/****","****","****")
drv オブジェクトは正常に作成されますが、conn はエラー メッセージで失敗します
"Error in .jcall(drv@jdrv, "Ljava/sql/Connection;", "connect", as.character(url)[1], :
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host data.rsquaredltd.com/SandP, port 1433 has failed. Error: "null. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall."."
ファイアウォールによるブロックはなく、前述のとおり、RODBC 経由の接続に問題はありません。