Skip to content

Instantly share code, notes, and snippets.

@toamitkumar
Created April 12, 2011 04:19
Show Gist options
  • Save toamitkumar/914923 to your computer and use it in GitHub Desktop.
Save toamitkumar/914923 to your computer and use it in GitHub Desktop.
1) Download and install FreeTDS
2) Configure FreeTDS (make an entry inside /usr/local/etc/freetds.conf)
[free_tds_server]
host = <sql server>
port = 1433
tds version = 8.0
encryption = no
3) Install ruby gems
i) gem install activerecord-sqlserver-adapter
ii) gem install tiny_tds
4) database.yml
development:
adapter: sqlserver
mode: dblib
dataserver: my_sql_server
database: my_database_name
username: my_username
password: xxxxx
timeout: 5000
@toamitkumar
Copy link
Author

aaahh ok
going to pull 0.91 from nightly builds and testing it

@metaskills
Copy link

This is the one in the project ports file.
http://www.ibiblio.org/pub/Linux/ALPHA/freetds/current/freetds-current.tgz

FYI, you should be able to clone the repo and do:

$ rake compile
$ rake native gem

And that will make a gem for your system. You can then move it around and do "gem install 'thatgemfile'"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment