Ruby on rails - how to retrieve connection strings

Posted by Jett on Stack Overflow See other posts from Stack Overflow or by Jett
Published on 2010-06-18T02:01:39Z Indexed on 2010/06/18 2:13 UTC
Read the original article Hit count: 256

Filed under:
|

Hi Everyone,

Are there any ways to retrieve the database connection string where my ruby is connected? what i would like to get is the:

1) Database name where the ruby is connected 2) The username of the SQL Server 3) Password of the SQL Server 4) Server name

I want to store it in session variables.

(I'am using MS SQL Server.)

Please help! thanks!

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about activerecord