Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Connect to MS SQL Server via ODBC vs OLEDB. (See related posts)

From http://wiki.rubyonrails.org/rails/pages/HowtoConnectToMicrosoftSQLServer:

Connecting via the OLEDB adaptor seems to have it’s quirks. Another posibility is to connect via ODBC (tested with Rails 1.1.6)

e.g. for a trusted connection
   1  
   2  development:
   3    adapter: sqlserver
   4    mode: odbc
   5    dsn: Driver={SQL Server};Server=<your server>;Database=<your db>;Trusted_Connection=yes;

You need to create an account or log in to post comments to this site.


Click here to browse all 5555 code snippets

Related Posts