Has anyone been able to get Rails talking to Microsoft SQL Server from
OSX Snow Leopard? In the past with Leopard, I used the instructions
found here: http://wiki.rubyonrails.org/database-support/ms-sql. But
with Snow Leopard I get the following error when I try to access an
ActiveRecord object:
Has anyone been able to get Rails talking to Microsoft SQL Server from
OSX Snow Leopard? In the past with Leopard, I used the instructions
found here: http://wiki.rubyonrails.org/database-support/ms-sql. But
with Snow Leopard I get the following error when I try to access an
ActiveRecord object:
I wonder if you seeing a similar issue as with MySQL. Maybe you need to
force the C extensions for your gems to compile for your specific
platform using ARCHFLAGS:
I'm having the same problem as Tom. I can connect to the SQL Server
and run a "select *" from iSQL, so I believe that ruby-odbc bindings
are using iODBC instead of unixODBC
% tsql -C
Compile-time settings (established with the "configure" script)
Version: freetds v0.82
freetds.conf directory: /usr/local/Cellar/freetds/0.82/
etc
MS db-lib source compatibility: yes
Sybase binary compatibility: no
Thread safety: yes
iconv library: yes
TDS version: 8.0
iODBC: no
unixodbc: yes
% ruby extconf.rb --with-odbc-dir=/usr/local/lib
checking for version.h... yes
checking for sql.h... yes
checking for sqlext.h... yes
checking for SQLTCHAR in sqltypes.h... yes
checking for SQLLEN in sqltypes.h... yes
checking for SQLULEN in sqltypes.h... yes
checking for odbcinst.h... yes
checking for SQLAllocConnect() in -lodbc... no
checking for SQLAllocConnect() in -liodbc... yes
checking for SQLConfigDataSource() in -lodbcinst... no
checking for SQLConfigDataSource() in -liodbcinst... yes
checking for SQLInstallerError() in odbcinst.h... yes
creating Makefile