Forum: Ruby on Rails odbc adapter error with one-click-installer 1.8.4 pv3

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ddc850a63a423c3ff963bdf3a097652f?d=identicon&s=25 Larry Kelly (Guest)
on 2006-03-09 13:10
(Received via mailing list)
I'm having trouble accessing a db2 database via odbc using rails.  It's
an
external database, that I import data from.  I have placed the
connection
code in my model :

   unless connected?
      establish_connection(
        :adapter => "odbc",
        :dsn => "TM_Reporting_00001",
        :username => "<name>",
        :password => "<passwd>"
      )
    end

When I call this via the concole, I get a " unknown adapter" error.
I've
checked and  an odbc file is included. Can someone help me with this?

--
Best Regards,
-Larry
"Work, work, work...there is no satisfactory alternative."
            --- E.Taft Benson
This topic is locked and can not be replied to.