i''m trying to connect to a SQL Server from my ruby script, to fetch some data to a new database (using MySQL) but i get these errors: paulo@shuffle:/tmp/sql$ ruby test.rb WARNING: no ODBC driver manager found. /usr/lib/ruby/1.8/DBD/ODBC/ODBC.rb:95:in `connect'': INTERN (0) [RubyODBC]Cannot allocate SQLHENV (DBI::DatabaseError) any ideas? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
well, i''ve followed this guide http://wiki.rubyonrails.com/rails/pages/HowtoConnectToMicrosoftSQLServerFromRailsOnLinux and got something workign, now i have another error message: paulo@shuffle:/tmp/sql$ ruby test.rb /usr/lib/ruby/1.8/DBD/ODBC/ODBC.rb:95:in `connect'': IM003 (0) [iODBC] [Driver Manager]Specified driver could not be loaded (DBI::DatabaseError) On Mar 31, 11:36 am, "Paŭlo Geyer" <pauloge...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> i''m trying to connect to a SQL Server from my ruby script, to fetch > some data to a new database (using MySQL) > > but i get these errors: > paulo@shuffle:/tmp/sql$ ruby test.rb > WARNING: no ODBC driver manager found. > /usr/lib/ruby/1.8/DBD/ODBC/ODBC.rb:95:in `connect'': INTERN (0) > [RubyODBC]Cannot allocate SQLHENV (DBI::DatabaseError) > > any ideas?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I got the same error on my Debian Etch and I fix it installing the package ''libiodbc2'' with apt-get. I hope this will be usefull. Juan Matias Repetti.(ARG) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
thanks Juan Matias, i''ll try later On 16 maio, 17:50, Juan Matias <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I got the same error on my Debian Etch and I fix it installing the > package ''libiodbc2'' with apt-get. > I hope this will be usefull. > Juan Matias Repetti.(ARG) > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---