Ben Lovell
5/6/2009 3:19:00 PM
[Note: parts of this message were removed to make it a legal post.]
On Wed, May 6, 2009 at 4:04 PM, Arti Singh <arti.p.singh@gmail.com> wrote:
> I am quite new to ruby and trying to connect to a SQL Server 2005
> Database with ruby to run a few queries but I am not getting anywhere.
> Am I missing something? I am getting a connection refused on all counts.
>
Try this if you're using sequel:
DB = Sequel.ado('database_name', :host => 'localhost', :user => 'username',
:password => 'password')
Should work if you replace the 'database_name', host, user and password with
your own.
Ben