From: Ben Lovell Date: 2009-05-07T00:19:21+09:00 Subject: Re: Help with connecting to SQL Server 2005 Database with Ruby --00504502d7e8509c8804693febce Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Wed, May 6, 2009 at 4:04 PM, Arti Singh 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 --00504502d7e8509c8804693febce--