Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@codingoutloud
Created October 3, 2012 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codingoutloud/3829717 to your computer and use it in GitHub Desktop.
Save codingoutloud/3829717 to your computer and use it in GitHub Desktop.
Web.Release.config transform to apply a real Windows Azure SQL Database connection string
<?xml version="1.0"?>
<!-- Source: https://gist.github.com/3829717 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<connectionStrings>
<add name="NameOfConnectionStringNeedsToMatchWhatsInRegularWebConfig"
connectionString=
"Server=tcp:abcd12hdj.database.windows.net,1433;Database=pop-tart;User ID=hopefullynonadminuser@abcd12bhdj;Password=TopSecretPassw0rd;Trusted_Connection=False;Encrypt=True;Connection Timeout=30;"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
</system.web>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment