We have been using this method of forcing the catalog name in the generated sql (cut and pasted from the docs):
<configuration>
<appSettings>
<add key="Main.ConnectionString" value="data source=..."/>
<add key="CatalogNameUsageSetting" value="1"/>
<add key="CatalogNameToUse" value="MyProductionCatalog" />
...
</appSettings>
</configuration>
So code similar to what is above is used in the staging/prod environment, and it is commented out in test. The Main.ConnectionString value is the same for all three environments.
The problem is, we have the "initial catalog" setting as part of the Main.Connectionstring. We discovered that when the initial catalogue (which is the test catalog that we generate from) was taken offline, all the sites went down.
Are we doing something wrong? Should we be changing the initial catalog in the web.config as well as adding the override code, or is there a workaround for this? I realize there are newer, better ways to manage this now.
Thanks,
Phil