# ODBC Error: Data Source Name not found

**URL:** <https://www.ruby-forum.com/t/odbc-error-data-source-name-not-found/121793>\
**Category:** Rails\
**Created:** [November 30, 2007, 10:30pm UTC](https://www.ruby-forum.com/t/odbc-error-data-source-name-not-found/121793 "2007-11-30T22:30:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamucci](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c0e974/32.png) [@adamucci](https://www.ruby-forum.com/u/adamucci)\
**Post date:** [November 30, 2007, 10:30pm UTC](https://www.ruby-forum.com/t/odbc-error-data-source-name-not-found/121793/1 "2007-11-30T22:30:18Z")

</div>

I hope this is the place to post errors, and solicit help…if not,  
my apologies…

I inherited a RoR app, and it was working great for the longest  
time…however, i have recently started receiving the following  
error:

* * *

A DBI::DatabaseError occurred in repairs#edit:

IM002 (0) [unixODBC][Driver Manager]Data source name not found, and  
no default driver specified  
/usr/local/lib/ruby/site\_ruby/1.8/DBD/ODBC/ODBC.rb:95:in `connect’

* * *

## Request:

- URL: [https://127.0.0.1:8004/repairs/edit/132](https://127.0.0.1:8004/repairs/edit/132)
- Parameters: {“action”=\>“edit”, “id”=\>“132”,  
“controller”=\>“repairs”}
- Rails root: /home/COMMON/dadd/current

* * *

As background: I have very little RoR skill…I dont have root  
access to the linux server that this app runs on…I can get to the  
app directory, though. the server team rebooted the host, and after  
that this started happening. We are using FreeTDS for ODBC  
connections. I have freetds.conf, which i can post, along with the  
repairs\_controller.rb file, and the database.yml file…I am pretty  
sure that the problem lies in one of those. I suspect that something  
happened with freetds, since I have changed nothing within the  
application.

If some one could help me, that would be great…again, if needed, i  
can post any files you think would help…

thanks!  
John
