gunakan kelas SqlConnectionStringBuilder
SqlConnectionStringBuilder conn = new SqlConnectionStringBuilder(ConnectionStringFromConfig)
{ InitialCatalog = "your CatalogName" }; // you can add other parameters.
lalu gunakan connectionstring ini jika diperlukan
conn.ConnectionString;