Skip to content

Instantly share code, notes, and snippets.

@toamitkumar
Created April 12, 2011 04:24
Show Gist options
  • Save toamitkumar/914928 to your computer and use it in GitHub Desktop.
Save toamitkumar/914928 to your computer and use it in GitHub Desktop.
1) brew install freetds
2) /usr/local/etc/freetds.conf
[my_sql_server]
host = <hostip>
port = 1433
tds version = 7.0
3) Enter these in the Gemfile:
gem 'tiny_tds'
gem 'activerecord-sqlserver-adapter', :require => false
4) Update database.yml:
development:
adapter: sqlserver
mode: dblib
dataserver: my_sql_server
database: my_database_name
username: my_username
password: xxxxx
timeout: 5000
5) bundle install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment