Works under Rails v4.0.0
Commented some lines: rollback_transaction_records
create_database has an additional parameter for collation

When creating a database you can now optionally specify the collation
used instead of having to rely on the server's default collation. The
latter is not always ideal when dealing with legacy systems.
 increment/decrement_open_transactions deprecated

https://github.com/rails/rails/commit/9296e6939bcc786149a07dac334267c403
5b623a
Fix Deprecation warning -  call columns with a table name!
Fix deprication warning call columns with a table name!
Fix tiny_tds caused segfault
require arel 4.0.0
.find(:first) deprecated
allow only some tests to be run

bundle exec rake test SQLSERVER_ONLY=true
 bundle exec rake test
TEST_FILES="~/code/source/rails40/activerecord/test/cases/scoping/named_
scoping_test.rb"
Disable Timeout
.find(:first) deprecated
active_support/core_ext/exception no longer valid
TODO's
added "turn" gem for better test output
specified activerecord 4.0.0
load setup files when running selected tests
deadlock test skipped for now.  It deadlocks.
make clear that Undefined coerced test is not an error message
Removed left over puts.

Thanks to @annaswims for spotting it.