Hi!
I am trying to use the SQLServer Adapter in a Rails application with an Azure SQL Database. I am using Ubuntu 12.04 LTS, activerecord-sqlserver-adapter v3.1.7, tiny_tds v0.5.1 and FreeTDS from the Ubuntu repository (v.0.91-1). I succeeded in getting a connection by using a script similar to this one:
https://groups.google.com/d/msg/rails-sqlserver-adapter/cgMSRVFlqE4/pv1F2ZqtbGwJHowever, when I try to run a Rake task (or the Rails application), I am getting the following error message upon DB connection:
Currently, only 2005, 2008, 2010 and 2011 are supported. We got back Microsoft SQL Azure (RTM) - 11.0.2154.0
Nov 10 2012 01:09:45
Copyright (c) Microsoft Corporation
My database.yml file looks like this (excerpt):
development:
adapter: sqlserver
mode: dblib
dataserver: # Name from freetds.conf, host or instance 'localhost\SQLEXPRESS'
host:
my_db_server.database.windows.net # Used if dataserver is blank.
port: 1433 # Used if host present. Default is 1433.
database: my_db
username: my_user@my_db
password: my_pw
timeout: 5000
azure: true
A Google research didn't give me any clue about what is wrong here. Is there a problem with the Azure DB version?
I also want to state that I'm pretty new to Ruby and Rails and just working at migrating an existing app. So any help is kindly appreciated.
Kind Regards,
Gernot