I'm trying to use TinyTds to connect to an sql server using Ruby on Rails. This is how my database.yml file look like: development: adapter: sqlserver mode: dblib dataserver: 192.168.1.13 database: *** username: *** password: *** timeout: 5000 I know that the username, password and database is correct but I cannot get it to work. The error message I get is: TinyTds::Error: Cannot open user default database. Login failed. I'm using TinyTds 0.4.5 and Ruby on Rails 3.1rc5 on Mac OS X.