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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -