I have a ruby application connecting to SQL server 2000 that throws the
ActiveRecord::StatementInvalid (DBI::DatabaseError: 24000 (0)
[unixODBC][FreeTDS][SQL Server]Invalid cursor state: SELECT * FROM
Personnel WHERE (name = ‘mickey mouse’) ):
The statement obviously returns no records, and it is this condition
that seems to throw the error.
I’m guessing that the problem lies with UnixODBC or the way Rails
interacts with it because this code works fine on Win32 where Rails is
going directly to the Microsoft ODBC driver.
Current revision levels are as follows: