On 24 May 2011 21:49, Babak bsn <[email protected]> wrote:
> Kendall Gifford wrote in post #1000466:
>> On Sunday, May 22, 2011 11:51:23 AM UTC-6, Ruby-Forum.com User wrote:
>>> 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).
>
> Thank you Kendll,i think my problem has been solved but i am facing
> another problem in connecting to my sql server. another error is:
>
> 28000 (18456) [Microsoft][ODBC SQL Server Driver][SQL Server]Login
> failed for user XXX/XXX
>
> what should i do?would you please help me?

Have you checked that user XXX/XXX can login to the server via an
alternative client?  It seems an obvious thing to check, but you have
not told us that you have checked so the question has to be asked.

Colin

-- 
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