rails-sqlserver/activerecord-sqlserver-adapter — pull request #133 by kalabiyau (2011-10-21 11:11:58+00:00)
Title: Custom optional statements execution to set up useroptions

Maybe u can check my idea about to set up user options for connection.
activerecord-sqlserver-adapter (ASA) uses sqlserver options. We cannot change this settings globally (maybe i'am wrong?) without recreating user with some defaults, but we can push some settings on session.
I search in code for a place, to do this after TinyTds::Client.new but unfortunately did not found. Because ASA uses existing connection all the time which is created on start, i think.

In my PR user can use own statements to set up datetime or maybe some more settings on server without any changes on it configuration.
I can do this by adding additional string to database.yml.

```yaml
session_options: ["SET language русский", "SET dateformat ymd"]
```

Please tell me if there is some more elegant method ...