Here’s the list of thing you have to do in order to connect to Microsoft SQL Server (tested on 2005) with integrated connection (without any usernames passwords).
This configuration will work for all you Rails applications.
In order to set up a proper connection to your database from your application edit config/database.yml file.
Here’s the example of what you should input if you use Windows Authentication.
adapter: sqlserver
database: Marcin
username:
password:
host: DBI:ADO:Provider=SQLOLEDB;Data Source=servername,port;Initial Catalog=databasename;Integrated Security=SSPI;Network=networkname_if_necessary;
Notice, that since we’re using Integrated Security we’re not leaving username and password blank. This greatly reduces the maintenance of this configuration file.
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.