Ruby 由于某些SQL server配置错误,无法启动rails服务器

Ruby 由于某些SQL server配置错误,无法启动rails服务器,ruby,sql-server,ruby-on-rails-3,Ruby,Sql Server,Ruby On Rails 3,在cmd中尝试将rails服务器作为“rails服务器”启动时,出现以下错误 错误: 以下是我的Gem和database.yml文件 database.yml: 档案: 下面解释我的SQL server配置详细信息 我还在sql配置中启用了TCP/IP。请帮助我解决此错误,并使用rails安装sql server。您不应在此处透露您的用户名pwdserver@uDay,你知道这个错误吗? Exiting C:/Ruby193/lib/ruby/gems/1.9.1/gems/activereco

在cmd中尝试将rails服务器作为“rails服务器”启动时,出现以下错误

错误:

以下是我的Gem和database.yml文件

database.yml:

档案:

下面解释我的SQL server配置详细信息


我还在sql配置中启用了TCP/IP。请帮助我解决此错误,并使用rails安装sql server。

您不应在此处透露您的用户名pwdserver@uDay,你知道这个错误吗?
Exiting
C:/Ruby193/lib/ruby/gems/1.9.1/gems/activerecord-sqlserver-adapter-3.2.13/lib/ac
tive_record/connection_adapters/sqlserver_adapter.rb:440:in `execute': closed co
nnection (TinyTds::Error)
# MySQL.  Versions 4.1 and 5.0 are recommended.
# 
# Install the MYSQL driver
#   gem install mysql2
#
# Ensure the MySQL gem is defined in your Gemfile
#   gem 'mysql2'
#
# And be sure to use new-style password hashing:
#   http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
  adapter: sqlserver
  mode: dblib
  encoding: utf8
  reconnect: false
  database: Swargadwara_puri
  pool: 5
  username: sa 
  password: chandra123
  dataserver: OWL002\SQL2012

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  adapter: sqlserver
  mode: dblib
  encoding: utf8
  reconnect: false
  database: Swargadwara_puri
  pool: 5
  username: sa
  password: chandra123
  dataserver: OWL002\SQL2012

production:
  adapter: sqlserver
  mode: dblib
  encoding: utf8
  reconnect: false
  database: Swargadwara_puri
  pool: 5
  username: sa
  password: chandra123
  dataserver: OWL002\SQL2012
source 'https://rubygems.org'

gem 'rails', '3.2.19'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

#gem 'mysql'
gem 'tiny_tds'
gem 'activerecord-sqlserver-adapter'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer', :platforms => :ruby

  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
gem "bcrypt-ruby", :require => "bcrypt"
# To use Jbuilder templates for JSON
# gem 'jbuilder'

# Use unicorn as the app server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'debugger'
gem 'bootstrap-datepicker-rails', '>= 0.6.21'
gem 'will_paginate', '~> 3.0'