Gossamer Forum
Home : Products : Links 2.0 : Installation -- Windows :

Re: [BabiesOnline] Links SQL runs fine, 2.0 not

Quote Reply
Re: [BabiesOnline] Links SQL runs fine, 2.0 not In reply to
 
3
down vote
Instead of running your production server on Linux have you considered to run rails on Windows? I am currently developing an application using SQL Server and until know it seems to run fine.

These are the steps to access a SQL Server database from a Rails 2.0 application running on Windows.

The SQL Server adapter is not included by default in Rails 2. It is necessary to download and install it using the following command.

gem install activerecord-sqlserver-adapter
--source=http://gems.rubyonrails.org
Download the latest version of ruby-dbi from

http://rubyforge.org/projects/ruby-dbi/

and then extract the file from ruby-dbi\lib\dbd\ADO.rb

to C:\ruby\lib\ruby\site_ruby\1.8\DBD\ADO\ADO.rb.

Warning, the folder ADO does not exist, so you have to create it in advance.

It is not possible to preconfigure rails for SQL Server using the --database option, just create your application as usual and then modify config\database.yml in your application folder as follows:

development:
adapter: sqlserver
database: your_database_name
host: your_sqlserver_host
username: your_sqlserver_user
password: your_sqlserver_password
Run rake db:migrate to check your installation. If everything is fine you should not receive any error message.

Last edited by:

Andy: Sep 5, 2010, 11:56 PM
Subject Author Views Date
Thread Links SQL runs fine, 2.0 not BabiesOnline 11547 Sep 5, 2003, 2:10 PM
Thread Re: [BabiesOnline] Links SQL runs fine, 2.0 not
Stealth 11318 Sep 5, 2003, 2:17 PM
Thread Re: [Stealth] Links SQL runs fine, 2.0 not
BabiesOnline 11312 Sep 5, 2003, 2:21 PM
Thread Re: [BabiesOnline] Links SQL runs fine, 2.0 not
nakulgoyal 10987 Jan 14, 2004, 12:34 PM
Post Re: [nakulgoyal] Links SQL runs fine, 2.0 not
megri 10696 Jul 4, 2004, 7:58 AM
Post Re: [BabiesOnline] Links SQL runs fine, 2.0 not
chrisadam12 8587 Sep 5, 2010, 10:29 PM