0

I have this connection string:

<connectionStrings>
  <clear />
  <add 
    name="EPiServerDB" .... />
</connectionStrings>

And was wondering if it is possible to rename it to something else other that EPiServerDB. Is it possible? We really need that on the current project as this name conflicts with another connection string which we hoped to use from an earlier project. The reason why is that we are integrating the old business layer into our new solution.

We are using EPiServer CMS 7, if that matters.

ptf
  • 3,210
  • 8
  • 34
  • 67
  • 1
    The connection to EPiServer must as far as I know always be called EPiServerDB. You can't have the EPiServer API connected to two databases at the same time, that doesn't make sense. The "old business layer" could use some other connection string name perhaps? – Andreas May 01 '13 at 06:55
  • @Andreas I did this: http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=70799&epslanguage=en + renamed all references to the connection string and it worked. – ptf May 02 '13 at 07:12

2 Answers2

2

I had to do what this forum post says:

http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=70799&epslanguage=en

Plus I had to rename all references to the connection string.

ptf
  • 3,210
  • 8
  • 34
  • 67
  • Mark this answer as "answer" aswell, to make sure it's properly visible that this answer solved your question. – RoggA Sep 17 '13 at 13:16
0

If you use Visual Studio, you can go to Project properties -> Settings and rename connection string there.

enter image description here

Kirill Bestemyanov
  • 11,946
  • 2
  • 24
  • 38
  • My project didn't contain a settings file. It offered me to create one, but it was empty. – ptf Apr 30 '13 at 14:01