# SQL Server on Linux (Rails 2.0.2)

**URL:** <https://www.ruby-forum.com/t/sql-server-on-linux-rails-2-0-2/133834>\
**Category:** Rails\
**Created:** [April 4, 2008, 5:15am UTC](https://www.ruby-forum.com/t/sql-server-on-linux-rails-2-0-2/133834 "2008-04-04T05:15:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sweet61](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/0ea827/32.png) [@sweet61](https://www.ruby-forum.com/u/sweet61)\
**Post date:** [April 4, 2008, 5:15am UTC](https://www.ruby-forum.com/t/sql-server-on-linux-rails-2-0-2/133834/1 "2008-04-04T05:15:08Z")

</div>

I am experiencing inconsistencies within ActiveRecord when retrieving  
from a SQL Server table using the FreeTDS driver.

The following dump from an interactive console session shows the  
issue.

$ script/console  
Loading development environment (Rails 2.0.2)

> > n = Network.find(3)  
> > =\> #\<Network id: 3, country\_id: 1, short\_description: “Orange”,  
> > description: “Orange”, carefone\_code: "OR "\>
> 
> > n = Network.find(3)  
> > =\> #\<Network id: 3, country\_id: 1, short\_description: “Orange”,  
> > description: “Orange”, carefone\_code: "OR "\>
> 
> > n = Network.find(3)  
> > =\> #\<Network id: 72340172821233667, country\_id: 72340172821233665,  
> > short\_description: “Orange”, description: “Orange”, carefone\_code:  
> > "OR "\>
> 
> > n = Network.find(3)  
> > =\> #\<Network id: 3, country\_id: 1, short\_description: “Orange”,  
> > description: “Orange”, carefone\_code: "OR "\>
> 
> > quit

What happened to my network ID the third time the find was run?

This happens across a lot of models and at inconsistent times. The  
only consistent thing is that the affected fields are all ints.

Has anyone experiences anything like this before?
