diff options
Diffstat (limited to 'activerecord/test/connections')
-rw-r--r-- | activerecord/test/connections/native_sqlserver/connection.rb | 12 |
1 files changed, 9 insertions, 3 deletions
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 ) |