From a6fefad354d36f3e9a91f8582659ffcda1a35855 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 1 Jan 2005 18:55:04 +0000 Subject: Added the final touches to the Microsoft SQL Server adapter by DeLynn Berry that makes it suitable for actual use #394 [DeLynn Barry] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@302 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/connections/native_sqlserver/connection.rb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'activerecord/test/connections/native_sqlserver') diff --git a/activerecord/test/connections/native_sqlserver/connection.rb b/activerecord/test/connections/native_sqlserver/connection.rb index b198f21c4b..8d758a02ab 100644 --- a/activerecord/test/connections/native_sqlserver/connection.rb +++ b/activerecord/test/connections/native_sqlserver/connection.rb @@ -6,10 +6,16 @@ ActiveRecord::Base.logger = Logger.new("debug.log") ActiveRecord::Base.establish_connection( :adapter => "sqlserver", - :dsn => "DBI:ADO:Provider=SQLOLEDB;Data Source=(local);Initial Catalog=test;User Id=sa;Password=password;" + :host => "localhost", + :username => "sa", + :password => "", + :database => db1 ) Course.establish_connection( - :adapter => "sqlserver", - :dsn => "DBI:ADO:Provider=SQLOLEDB;Data Source=(local);Initial Catalog=test2;User Id=sa;Password=password;" + :adapter => "sqlserver", + :host => "localhost", + :username => "sa", + :password => "", + :database => db2 ) -- cgit v1.2.3