Closed carlesso closed 13 years ago
Perhaps this is related to named instances on that box?
What do you mean (forgive me, I'm not Windows/MsSQL expert at all...)
Ha... I personally hate windows and really know little about the OS and working on it. Which is odd, cause to make this adapter so great with ActiveRecord, I have learned MUCH about SQL Server which can technically be done without touching Windows (mine runs hidden in VMWare in the background).
So yes, I'm totally ignorant on things Windows and still know quite a bit about SQL Server. I often tell my local ruby group and friends, I have no love for Microsoft, especially their OS, but SQL Server is not a bad DB as long as your not paying for it :)
That's how I square that. Meanwhile and for the hell of it, I'm trying to install IronRuby on my VMWare instance and I'll see what happens.
Do you think is usefull to use ironruby instead of "classic" ruby istallation? And does my database.yml makes sense for you?
In my opinion, it would be best to use Classic ruby on a POSIX system, not Windows and do what most people do, use UnixODBC to connect. If you absolutly have to be on Windows and could care less about the .Net crazy interop with IronRuby, then I say learn the hard parts of setting up classic on Windows and use it. Much like MacRuby, I would never us it for Ruby things, I always install a classic ruby on my Mac.
Re, your database.yml file. Looks good, but I'm only learning and I have not gotten to the part where I can comment on that yet. I will in the next few days tho.
Just as an FYI, the 2.3.5 adapter support IronRuby with the ADONET connection mode. Tho, IronRuby is not fully baked, we are passing almost all the ActiveRecord tests under it now. Also a few things I noticed about your database.yml stuff. It seems you are mixing things. ODBC connection host your using "SCADA\SQLEXPRESS" is something that the IronRuby ADONET mode would understand, but not ODBC, because that string is very windows specific. IE, a domain box server instance.
No one has hinted at supporting IronRuby in months. With the latest TinyTDS being cross compiled for windows installation and included in the upcoming RailsInstaller, I doubt there will be. If someone does want to support patches, I may consider looking into it again.
Using the adapter on Windows XP with Microsoft SQL 2005 Express, with this database.yml
development: adapter: sqlserver host: SCADA\SQLEXPRESS username: guest password: guest dsn: Server=SCADA\SQLEXPRESS;Database=rails;Uid=guest;Pwd=guest
Running rake db:migrate returns me:
Any hint?