Your problems three times:
1. Attempting to use win32ole / OLEDB on a non-Windows machine
, win32ole Ruby, -Windows-. , OLEDB Linux-, , .
2.
ip address port number
. Access , Windows, TCP-. , Windows , Linux .
3.
win32ole , . ODBC - , , , ODBC Access Linux ( " mdb" "unixODBC" ) , , .
JRuby UCanAccess JDBC. Ubuntu 14.04 LTS JRuby...
connUrl = "jdbc:ucanaccess:///mnt/weezerpublic/uca301demo.accdb"
conn = java.sql.DriverManager.get_connection(connUrl)
stmt = conn.create_statement
rs = stmt.execute_query("SELECT TextField FROM myTableInAccess WHERE ID=1")
while (rs.next) do
puts rs.getString("TextField")
end
conn.close
... script...
#!/bin/bash
export CLASSPATH=.:/home/gord/Downloads/JDBC/UCanAccess/loader/ucanload.jar
jruby jrubyTest.rb
... :
- Windows -. VPN-.
- JDBC UCanAccess . Ruby , – – - (, Microsoft SQL Server, MySQL,...) .