Is there a way to find out the server from an ActiveRecord connection?
I am using AR with SQLServer adapter on Rails2 / linux. In my local env, I can easily change freetds and odbc.ini files to track and find connection information. But under test conditions this information is constantly changing and out of sync, so I'm trying to include it in our log so that we can easily troubleshoot.
Yes, I know TinyTDS does it better, we are moving towards it, but not quite there yet.
I can do:
But can't find anything similar to get server address or ip.
source to share