Displaying 5 results from an estimated 5 matches for "interfaceerror".
2009 Apr 14
6
SQL Server via DBI/ODBC configuration
...s.org/database-support/ms-sql
but am having problems with the rails part. I can connect to the
database using sqsh so I think all the freetds plumbing is good. When
I try to connect to the db with a rake db:migrate or just using script/
console I get this error:
>> Client.find(:first)
DBI::InterfaceError: Unable to load driver ''ODBC''
from /usr/lib/ruby/gems/1.8/gems/dbi-0.4.0/lib/dbi.rb:286:in
`load_driver''
from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize''
from /usr/lib/ruby/gems/1.8/gems/dbi-0.4.0/lib/dbi.rb:236:in
`load_driver''
from /usr/lib/r...
2008 Feb 29
17
Is SQL Server not supported in RoR on the Mac?
...onnecting to a SQL Server database that
I thought might be related to the fact I was upgrading Rails to 2.0.
However, I also was moving the project to my shiny new macbook.
Anyway, after jumping through a few hoops (instaling DBI, etc.), I
finally get to my latest error message:
<error>
DBI::InterfaceError: Could not load driver (no such file to load --
win32ole)
from /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:344:in `load_driver''
from /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:227:in
`_get_full_driver''
from /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:213:in `connect''
from...
2008 Jan 17
6
Problems with sqlserver 2000 and ActiveRecord
...:adapter => "sqlserver",
:database => "nombre_bd",
:username => "usu",
:password => "contra"
)
I have the next error:
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...
2009 Aug 18
2
DBI: connect succeeds in IRB, fails in Rails
require ''dbi'' # 0.4.2
dbh = DBI.connect(''DBI:ODBC:PACS'', ''username'', ''password'')
This works in IRB; in Rails it fails (taken from Rails console):
DBI::InterfaceError: Unable to load driver ''ODBC'' (underlying error:
uninitialized constant DBI::DBD::ODBC)
from C:/scripts/Rads/vendor/gems/dbi-0.4.2/lib/dbi.rb:300:in
`load_driver''
from c:/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize''
from C:/scripts/Ra...
2009 Apr 02
2
Ruby 1.9, Rails 2.3.2, and MSSQL issue
I am having a strange issue. I have upgraded to ruby 1.9.1 to do some
testing on one of my machines. My app accesses a MSSQL database to
pull in some information. Everything worked fine with ruby 1.8.6, but
now if I try to navigate to a page that accesses that database I get
this error:
DBI::InterfaceError in PagesController#company
Unable to load driver ''ODBC'' (underlying error: uninitialized constant
DBI::DBD::ODBC)
I''m using activerecord-sqlserver-adapter (1.0.0.9250), dbd-odbc
(0.2.4), and dbi (0.4.1)
--~--~---------~--~----~------------~-------~--~----~
You receive...