If I understand your question correctly, you can also <clear />remove all previously defined connection strings from your child website. web.config:
<configuration>
<connectionStrings>
<clear/>
<add name="definedInParentButRedefinedHere" etc="..." />
</connectionStrings>
</configuration>
source
share