Connecting Rails to a SQL Server

Apr 5, 2007 14:23 · 41 words · 1 minute read

To connect Rails to a SQL Server, you’ll need to edit the config/database.yml file:


adapter: sqlserver

database: dbmydatabase


username: user

password: secret

Replace the fields with the appropriate values for the environment, and away it should all go…