diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-01 18:55:04 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-01 18:55:04 +0000 |
commit | a6fefad354d36f3e9a91f8582659ffcda1a35855 (patch) | |
tree | 9ead716b17c543e3295c08b9df95adb2dc17374d /activerecord/test | |
parent | 3e0077f54dc451a551360f7af9b5a9c96b3253af (diff) | |
download | rails-a6fefad354d36f3e9a91f8582659ffcda1a35855.tar.gz rails-a6fefad354d36f3e9a91f8582659ffcda1a35855.tar.bz2 rails-a6fefad354d36f3e9a91f8582659ffcda1a35855.zip |
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
Diffstat (limited to 'activerecord/test')
-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 ) |