I am using version 5.4 with SelfServicing Two Classes.
I have used the following setting in the config file of my application:
<sqlServerCatalogNameOverwrites>
<add key="MyDB" value="MyDB_test"/>
</sqlServerCatalogNameOverwrites>
<appSettings>
<add key="Main.ConnectionString" value="data source=trosqlao;initial catalog=MyDB;persist security info=False;packet size=4096"/>
...
I use these settings to switch between the test database and the production system.
To get the Connectionstring i use:
CommonDaoBase.ActualConnectionString = SessionController.GetConnectionString();
In SessionController.GetConnectionString i read above setting plus Username an Password.
How can I find out on which database (catalog name) I actually work? The connection string is not suitable because I can overwrite the catalog name in the config file.
I only use one database at a time.
Thanks for your help,
Alex