我想开发一个使用MS SQL Express的RoR应用程序,但我无法弄清楚如何连接到数据库。我试图Ruby on Rails和MS SQL EXPRESS
development:
adapter: sqlserver
database: historicDB
username: dxt
password: dxt
host: DBI:ADO:Provider=SQLNCLI;Data Source=localhost\SQLEXPRESS;InitialCatalog=historicDB;User Id=dxt;Password=dxt;
和
development:
adapter: sqlserver
database: historicDB
host: localhost\SQLEXPRESSS
username: dxt
password: dxt
我也装DBI,DBD-ODBC,ActiveRecord的 - SQLSERVER适配器,但nowthing作品我总是
ActiveRecord::ConnectionNotEstablished
在欢迎屏幕上
http://stackoverflow.com/questions/67141/using-rails-2-x-with-ms-sql-server-2005 – 2011-03-03 13:27:41