[ruby-dbi-users] dbi with odbc help requried

junk one junkone1 at gmail.com
Thu May 19 13:15:46 EDT 2011


can someone point out where i am makeig a mistake. my odbc connection
seems to connect to sql server successfully but i cannot do it from
ruby.

i am running ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]


D:\Documents and Settings\>irb
irb(main):001:0> require 'dbi'
=> true
irb(main):002:0> conn=DBI.connect('LPM','sm_user','smuser_0496')
DBI::InterfaceError: Invalid Data Source Name
        from C:/Ruby187/lib/ruby/gems/1.8/gems/dbi-0.4.5/lib/dbi.rb:
333:in `pars
e_url'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/dbi-0.4.5/lib/dbi.rb:
159:in `_get
_full_driver'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/dbi-0.4.5/lib/dbi.rb:
145:in `conn
ect'
        from (irb):2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ruby-dbi-users/attachments/20110519/1ecf9ce3/attachment.html>


More information about the ruby-dbi-users mailing list