ODBC query

B

Brian George

I'm attempting to connect to a database via ODBC connection.
I have the following gems installed:
dbi-0.4.3
dbd-odbc-0.2.5

I'm attempting to connect to an odbc connection with the name
'IRVQA-AUTO2'

irb(main):001:0> require 'DBI'
C:/Documents and
Settings/bgeorge/.bundle/ruby/1.8/gems/dbi-0.4.3/lib/DBI.rb:93:
warning: already initialized constant VERSION
C:/Documents and
Settings/bgeorge/.bundle/ruby/1.8/gems/dbi-0.4.3/lib/DBI.rb:96:
warning: already initialized constant API_VERSION
C:/Documents and
Settings/bgeorge/.bundle/ruby/1.8/gems/dbi-0.4.3/lib/DBI.rb:100
: warning: already initialized constant DEFAULT_TRACE_MODE
C:/Documents and
Settings/bgeorge/.bundle/ruby/1.8/gems/dbi-0.4.3/lib/DBI.rb:101
: warning: already initialized constant DEFAULT_TRACE_OUTPUT
=> []
irb(main):002:0> conn =
DBI.connect("DBI:ODBC:IRVQAAUTO2","poweruser","nexaqa")
DBI::InterfaceError: Unable to load driver 'ODBC' (underlying error:
uninitializ
ed constant DBI::DBD::ODBC)
from C:/Documents and
Settings/bgeorge/.bundle/ruby/1.8/gems/dbi-0.4.3/l
ib/DBI.rb:300:in `load_driver'
from C:/Ruby187/lib/ruby/1.8/monitor.rb:242:in `synchronize'
from C:/Documents and
Settings/bgeorge/.bundle/ruby/1.8/gems/dbi-0.4.3/l
ib/DBI.rb:242:in `load_driver'
from C:/Documents and
Settings/bgeorge/.bundle/ruby/1.8/gems/dbi-0.4.3/l
ib/DBI.rb:160:in `_get_full_driver'
from C:/Documents and
Settings/bgeorge/.bundle/ruby/1.8/gems/dbi-0.4.3/l
ib/DBI.rb:145:in `connect'
from (irb):2


Any ideas what my downfall may be?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,930
Messages
2,570,072
Members
46,522
Latest member
Mad-Ram

Latest Threads

Top