I can successfully connect to the database MySQLand Postgresusing 'sequel'.
I want to connect to a SQL Server database from Ubuntu 12.04 to Windows. Using tiny-tds, we can do this, but I want to use "continue" to connect
Mounted Pearls
gem 'dbi'
gem 'tiny_tds'
gem 'sequel'
gem "win32ole-pp"
gem "rubysl-win32ole"
gem 'activerecord-sqlserver-adapter'
I get the following error.
1.9.3p448 :007 > require 'win32ole-pp'
LoadError: cannot load such file -- win32ole-pp
1.9.3p448 :008 > require 'rubysl-win32ole'
=> false
1.9.3p448 :001 > DB = Sequel.ado(:database => 'test_database', :host => 'xxx.xxx.xxx.xxx', :user => 'username', :password => 'password', :provider => 'SQLNCLI10')
Sequel::AdapterNotFound: LoadError: cannot load such file -- win32ole
Sequel provides an adapter for tiny tds. How can i use this adapter? Please tell me how can I do this with the continuation of gem?
I don’t understand how to use tiny tds with a continuation, since the continuation provides an adapter for tiny_tds.
Thanks...