Re: Ruby | Ruby on Rails | database MS SQL Server 2005
- From: rubygujarat@xxxxxxxxx
- Date: Thu, 27 Sep 2007 05:24:59 -0000
On Sep 26, 9:57 am, Mark Gallop <mark.gal...@xxxxxxxxx> wrote:
Hi Joe,
Erstwhile Joe wrote:
How can I configure Ruby and Ruby on Rails for use with MS SQL Server
2005?
I haven't used ADO but have been successfully using ODBC to connect to a
mssql server. This is how I created the connection:
ActiveRecord::Base.establish_connection( :adapter => 'sqlserver',
:mode => 'odbc',
:dsn => 'MyDSName',
:username => 'bob',
:password => 'bob')
I added bob as a local user (maybe domain users also work) and created
the ODBC connection called MyDSName.
Cheers,
Mark
hi
Can you kindly helpo me more on this.
I am using sql2005 express on my machine.
My server name is : RubyGujarat
username:- sa
password:- mytest
can you help me , how should i mention this in the code given by you
above.
Thanks
IronRuby
.
- Follow-Ups:
- Re: Ruby | Ruby on Rails | database MS SQL Server 2005
- From: Damjan Rems
- Re: Ruby | Ruby on Rails | database MS SQL Server 2005
- References:
- Ruby | Ruby on Rails | database MS SQL Server 2005
- From: Erstwhile Joe
- Re: Ruby | Ruby on Rails | database MS SQL Server 2005
- From: Mark Gallop
- Ruby | Ruby on Rails | database MS SQL Server 2005
- Prev by Date: Re: ID the troll using posting-account = ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0
- Next by Date: Re: Ruby Beginner - Recommended Books
- Previous by thread: Re: Ruby | Ruby on Rails | database MS SQL Server 2005
- Next by thread: Re: Ruby | Ruby on Rails | database MS SQL Server 2005
- Index(es):
Relevant Pages
|