I want to create a RoR application using MS SQL Express, but I cannot figure out how to connect to the database. I tried
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;
and
development:
adapter: sqlserver
database: historicDB
host: localhost\SQLEXPRESSS
username: dxt
password: dxt
I also installed dbi, dbd-odbc, activerecord-sqlserver-adapter, but now everything works, I always get
ActiveRecord::ConnectionNotEstablished
on the welcome screen
source
share