Working with SQL Server with Ruby On Rails and Ubuntu
To work with SQL Server in Rails you need the following gems:
gem 'activerecord-sqlserver-adapter'
gem 'tini_tds'
activerecord-sqlserver-adapter
tini_tds
Before installing those gems, you need FreeTDS
If you install the free_tds via sudo apt-get install freetds-dev
, your connection probably won't work. You will need a version 0.91
Do the following:
- Download stable release: http://www.freetds.org/
- Extract it:
tar xvzf freetds-stable.tgz
cd freetds-0.91
./configure
make
sudo make install
- Verify your FreeTDS:
$ tsql -C
Now you can install your gems.
Written by David Paluy
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#