Tuesday, April 29, 2008

SOLVED: Ruby 'load_driver' is not a class/module (SQL Server)

While attempting to get ruby to connect to a SQL server using DBI.connect I ran into a bit of a challenge...getting the error message

'load_driver' is not a class/module

To resolve this :

  1. Download ruby_dbi the files from http://rubyforge.org/frs/?group_id=234&release_id=20222
  2. Create the directories under \ruby\lib\ruby\1.8\ called \DBD\ADO
  3. From your extract copy the file ADO.rb into that directory

This works with V1.8.5-24

Here's hoping this might save some one some time.

-ec

No comments:

Post a Comment