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!

Edit
Report