On Sunday, May 22, 2011 11:51:23 AM UTC-6, Ruby-Forum.com User wrote:
>
> Hi all
>
> I want to connect my app to MSSQL but when i type
>
> rake db:migrate
>
> an erro occured like this:
>
> ←[31mCould not find gem 'odbc (>= 0, runtime)' in any of the gem sources
> listed in your Gemfile.←[0m
>
The error message is your answer. There is no "odbc" gem (at least, not 
hosted on any of the sources which I'm guessing is just the default of 
:rubygems for you). You can verify that rubygems.org doesn't have a gem 
named "odbc" by visiting http://www.rubygems.org/ and doing a search for 
"odbc".

You'll get several resulting gems, but none of the gems are named (exactly) 
"odbc".

The "Installation" section of the README.rdoc file from the 
activerecord-sqlserver-adapter gem 
(https://github.com/rails-sqlserver/activerecord-sqlserver-adapter) says 
that you need "Ruby ODBC". This would be the "ruby-odbc" gem 
(http://rubygems.org/gems/ruby-odbc ; try "ruby-odbc" in your Gemfile).
 

> this is my YML file:
>
> development:
>   adapter: sqlserver
>   mode: odbc
>   dsn: ontrack
>   host: BABAK-PC
>   pool: 5
>   timeout: 5000
>
> and in my gem file
>
> gem 'activerecord-sqlserver-adapter'
> gem 'odbc'
>
> Thnk you for your help
>
> -- 
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to