我想開發一個使用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