ruby - Rails 4 ODBC Connection -


i've been using ruby connect external ibm db2 odbc database using third-party driver. however, when try same thing in rails, error thrown:

im003 (160) specified driver not loaded due system error 182 

i've tried these gems (odbc-rails uses development.rb, same result):

  • gem 'rails-dbi'
  • gem 'dbd-odbc'
  • gem 'ruby-odbc'
  • gem 'odbc-rails'

here line of code throws error:

dbi.connect("dbi:odbc:my_odbc_connection", username, password) 

i can run line of code @ ruby console, not @ rails console same ruby version. using windows 8.1

i have given full permissions folder containing library. tested running commands in administrative mode cli.

i have looked rails guides see if there security feature blocking driver being loaded in rails , seems issue resides rails somewhere.

if has ideas, grateful.


Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -