aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/connections/native_sqlserver/connection.rb
blob: 8d758a02ab207ed0a4488f4f0cde70798f500228 (plain) (tree)
1
2
3
4
5
6
7
8







                                                   



                           


                            




                           
 
print "Using native SQLServer\n"
require 'fixtures/course'
require 'logger'

ActiveRecord::Base.logger = Logger.new("debug.log")

ActiveRecord::Base.establish_connection(
  :adapter  => "sqlserver",
  :host     => "localhost",
  :username => "sa",
  :password => "",
  :database => db1
)

Course.establish_connection(
  :adapter  => "sqlserver",
  :host     => "localhost",
  :username => "sa",
  :password => "",
  :database => db2
)