Either way, a friend and I have written a Ruby C++ Extension for
Windows to allow Rails to work with SQL Server better (ever tried
internationalizing a Rails site with the sqlserver adapter? Not gonna
happen since it doesn't do Unicode).
It's at the point where we could really use the help of the community
to put it through it's paces. It's not a gem release yet, but I've
written a step-by-step guide to getting your site working with it and
it's really very simple.
So if you're feelin' charitable, here it is:
http://substantiality.net/articles/2006/10/12/mssqlclient-step-by-step-guide
If you take a liking to it and would like to discuss further in person,
maybe I can motivate my lazy self to make it out to another meeting.
:-)
Thanks, -Sam
PS: No, you're not seeing double. We did manage to convince our
employer to ask for some help with this awhile back and their recruiter
posted a contractor link here describing this very project. The site it
was meant for was cancelled and the project canned though, so a friend
and I took up the torch to make it happen ourselves. Of course not
knowing C++ was a small hurdle to overcome. :-D
Do you know the specific revision? Maybe I can duplicate it and work
the kinks out if I can duplicate your setup.
And thanks for the feedback! Sorry it isn't working out for you out of
the box. :-(
That combined with the stack trace you provided makes me suspect it's
something in your application. If you want to contact me by email I'd
be more than happy to help you get to the bottom of this just to be
sure though.
Thanks for the feedback! -Sam
Lemme try WEBrick real quick with my example app... Hmm... nope, that
works.
Would you mind sharing your database/application with me? I'd really
like to get to the bottom of this for you. My email account is
"ssmoot", on gmail if you can email it. If it's too big to email
(>10MB) I can give you FTP access to my host.
Thanks, -Sam
Maybe it's just a misunderstanding since I didn't explain it very
clearly: This Adapter is a Windows only thing. It's not intended for
Linux machines (or Mono installations). Not that you're doing that
necessarily, but I'm a little fuzzy on cygwin to be honest. Here's the
setup I've tested with:
Windows (w/ .NET2) + Ruby One-Click installer
gem install rails mongrel -y
gem install mssqlclient
rails MyApp
modify database.yml and environment.rb
mongrel_rails start
And that's it. It just works. I've done the same thing on an XP
machine, and my iMac under Parallels.
If you're willing to help me figure out how to duplicate your cygwin
setup, I can give it a shot, but I understand if you're beginning to
think this is more trouble than it's worth. I'm committed to doing my
best to make this succeed though if you're up for it.
Thanks, -Sam
PS: Back to that .NET CAS stuff, that might make a lot of sense...
though the code isn't doing anything that should require enhanced
priviledges. Maybe there's something in your security event-log or
something?
Maybe, I've never done that. Maybe it's a .NET Code-Access-Security
issue?
Maybe it's just a misunderstanding since I didn't explain it very
clearly: This Adapter is a Windows only thing. It's not intended for
Linux machines (or Mono installations). Not that you're doing that
necessarily, but I'm a little fuzzy on cygwin to be honest. Here's the
setup I've tested with:
Windows (w/ .NET2) + Ruby One-Click installer
gem install rails mongrel -y
gem install mssqlclient
rails MyApp
modify database.yml and environment.rb
mongrel_rails start
And that's it. It just works. I've done the same thing on an XP
machine, and my iMac under Parallels.
If you're willing to help me figure out how to duplicate your cygwin
setup, I can give it a shot, but I understand if you're beginning to
think this is more trouble than it's worth. I'm committed to doing my
best to make this succeed though if you're up for it.
Thanks, -Sam
PS: Back to that .NET CAS stuff, that might make a lot of sense...
though the code isn't doing anything that should require enhanced
priviledges. Maybe there's something in your security event-log or
something?