C:/ruby/lib/ruby/site_ruby/1.8/dbi.rb:329:in `load_driver': Unable to
load driver 'ADO' (DBI::InterfaceError)
I don't understand whre's the matter, i have installed the client tools
of sql server 2000 and 2005, and i have installed visual studio 2005
too (i should have installed the sql server ado provider).
If i try using ODBC, neither works. I can connect to database, and some
querys work, but in a quey i get a memory error:
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.1/lib/active_record/connection_a
dapters/abstract_adapter.rb:150:in `log': NoMemoryError: negative
allocation siz
e (or too big): SELECT * FROM si_Empresas WHERE
(si_Empresas.[IdEmpresa] = 227
2) (ActiveRecord::StatementInvalid)
As for ODBC, I have no idea what’s wrong there - we use it constantly here from Linux or Windows with no problems. On Windows, ADO seems to perform better for us though.