Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Being able to change name of connectionstring to EPiServer database

Vote:
 

I would like to be able to change the name for the connectionstring to the EPiServer database.

Today it is hardcoded to "EPiServerDB"

#118401
Mar 05, 2015 14:33
Vote:
 

I'm not the person to decide this, but from my point of view this will be very hard to change. EPiServerDB is not used in our code, but many tools (such as powershell, settings,...) use it to determine a connectionString is for CMS or not.

I can see a possible solution as to add a setting in web.config to specify the connectionString name for CMS, but it will make it much more complicated to work with that.

No, I'm not saying we're doing this or not doing this. Just for your information :)

/Q

#118426
Mar 06, 2015 8:03
Vote:
 

I'm interested in the background of why you want to change it? :)

#118431
Mar 06, 2015 9:55
Vote:
 

Thanks for the info Quan.

Johan. I am trying out a couple of little more advanced setups for multiple sites in the same solution. In one try I use virtual directory and doing that it crashed because the EPiServerDB-connectionstring was already defined in the parent web.config. I solved it by adding clear first in the connectionstrings node.

I know this is a very edge case and I do not think it is a very important feature, more a nice to have :)

#118432
Mar 06, 2015 10:00
Vote:
 

OK! I can see that virtual dir setup will have some other issues as well and also might be coming back a bit. For example Google is doing it with google.com/analytics/ and google.com/tagmanager/ as opposed to using sub domains for mail and maps etc.

#118441
Mar 06, 2015 10:23
Vote:
 

True Johan.
It might be that I will not go that way, still in the process on testing different solutions. One thing with using virtual directories and in that way independent sites is that it will be extra licence cost, because you pay per site, and now you have two sites....

#118445
Mar 06, 2015 10:48
Vote:
 

My use case is the following:

Specify connection string at IIS level (not the website level, so it's inherited by all IIS websites) - name would be Client1_EPiServerDB. Then at website level the connection strings node in web.config is empty because it inherits from parent which is good because you can keep all the different developer connection strings out of source control and each developer can set their own slightly different connection string.

Because of the hardcoded connection string name, the above method is only available if the developers machine has a single episerver website on it (which they never do).

#155509
Sep 19, 2016 20:44
This thread is locked and should be used for reference only.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.