Did you got a chance to look at:
SqlConnection..::.ConnectionString Property[
^]
Once you assign the connection string to
SqlConnection
object, you can access them separately.
For ex:
using (SqlConnection conn = new SqlConnection())
{
conn.ConnectionString = connectionString;
}