I didn't find any useful information about this, so I will try here.
My approach is, to have different db connections on my test server and on my life server.
Right now I have one connection String
<connectionStrings>
<clear/>
<add name="my_life" ... />
</connectionStrings>
Important note I had to provide the name of my string to the AspNetSqlMembershipProvider and AspNetSqlRoleProvider
<roleManager>
<providers>
<remove name="AspNetSqlRoleProvider"/>
<add name="AspNetSqlRoleProvider"
connectionStringName="my_life" ... />
</providers>
</roleManager>
Is there a way to handle the db connection via env variable or maybe url?