# Trouble Connecting to SQL Server

**URL:** <https://www.ruby-forum.com/t/trouble-connecting-to-sql-server/142642>\
**Category:** Rails\
**Created:** [July 10, 2008, 12:28am UTC](https://www.ruby-forum.com/t/trouble-connecting-to-sql-server/142642 "2008-07-10T00:28:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwalsh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/91b2a8/32.png) [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Post date:** [July 10, 2008, 12:28am UTC](https://www.ruby-forum.com/t/trouble-connecting-to-sql-server/142642/1 "2008-07-10T00:28:53Z")

</div>

Unfortunately for the project I am working on I am required to access  
an SQL Server database used by our parent company. They are .Net  
freaks and we haven’t been able to convert them yet. Anyway, I  
followed the instructions at:

[http://wiki.rubyonrails.com/rails/pages/HowtoConnectToMicrosoftSQLServer](http://wiki.rubyonrails.com/rails/pages/HowtoConnectToMicrosoftSQLServer)

I fire up Mongrel but when I try to access the site I get the error:

MissingSourceFile (no such file to load – dbi)

I can’t seem to find much info on this on the net. Any idea what I’m  
missing? Thanks.

---

<div class="post-metadata">

**Author:** ![mwalsh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/91b2a8/32.png) [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Post date:** [July 10, 2008, 2:08am UTC](https://www.ruby-forum.com/t/trouble-connecting-to-sql-server/142642/2 "2008-07-10T02:08:24Z")

</div>

What are you running this on? If Ruby is not running on windows, get  
ready for jumping some hoops…

---

<div class="post-metadata">

**Author:** ![mwalsh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/91b2a8/32.png) [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Post date:** [July 15, 2008, 9:58pm UTC](https://www.ruby-forum.com/t/trouble-connecting-to-sql-server/142642/3 "2008-07-15T21:58:23Z")

</div>

Everything on our side is running on Linux. I don’t know what the  
status of the SQL server is but it doesn’t actually need to run Ruby  
if it’s just hosting the database, does it?
