On Wed, Sep 2, 2009 at 12:13 PM, George
Adamson<[email protected]> wrote:
>
> Hi there, I'm trying to use Sequel in Merb to connect to SQL Server
> via ODBC.
> (For want of a better ORM way to connect to SQL Server!)
>
> Here's the syntax from my database.yml:
>
> development: &defaults
>  adapter: odbc
>  driver: SQL Server
>  db_type: mssql
>  database: selsvr01_SteppesTest    # Should this be name of ODBC
> connection or DB? Tried both.
>  username: georgetest
>  password: xxx
>  host: selsvr01
>
> (I'm using the "Actual SQL Server" driver on a Mac, installed from the
> Apple web site)
>
> Getting this error when I run "merb":
> /Library/Ruby/Gems/1.8/gems/sequel-3.3.0/lib/sequel/database.rb:112:in
> `adapter_class': Could not load odbc adapter:
> (Sequel::AdapterNotFound)
>  no such file to load -- odbc
>
> Yet when I look in the /sequel/adapters folder I see odbc.rb and an
> odbc folder.
>
> Any clues greatly appreciated. Be gentle though, I'm a ruby nuby!
> Many thanks,
> George

I think it needs an external dependency. In this case, its probably Ruby ODBC.

Try:
sudo gem install dbd-odbc

And see if that works for you?

Alex

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to