
It’s worth noting that if any other applications reply on the server name i.e. The SQL Server internal name may also need to changed.The server name needs to be changed on the Secondary server so that the applications can connect.The Primary server needs to be off, as you can’t have duplicate server names. It is likely that the Primary server will be off in the event of a DR scenario.Each application will need to be updated if the database moves or the server name changes.
#SQL SERVER CONNECTION STRING EXAMPLE UPDATE#
You don’t have to update the connection string if the IP address changes.That’s a lot of steps, with a lot of outage windows. Start the original Secondary server and re-establish log shipping.Change the IP address on the original Primary server, so that the applications can connect.Change the IP address on the original Secondary server and shut it down, as you can’t have duplicate IP addresses.Re-establish Log Shipping and failback the databases to the original Primary server.
Change the IP address on the original Primary server, as you can’t have duplicate IP addresses. The IP address needs to be changed on the Secondary server so that the applications can connect. It is likely that the Primary server will be off in the event of a DR scenario. The Primary server needs to be off, as you can’t have duplicate IP addresses. Each application will need to be updated if the database moves or the IP address of the server changes. DR failover/failback can be complicated and time consuming. A server name change doesn’t affect the client. minimize your future effort requirements when the database moves. keep as far away as possible from having to ever update the application connection string. Let’s go through your options, remembering that you want to: performance issues, DR failover, new version of SQL Server, hardware upgrades etc.Īs a DBA, you probably won’t have access to the application servers or remote clients where the connection name is entered and you’d like to keep it that way. The database move could be due to several factors i.e.
I’d suggest otherwise and some thought and planning is required before you answer.Īt some stage in the future the database is likely going to move. In the Additional connection parameters field, it is not recommended to define the SqlServerName and DatabaseName settings because they are already defined in the Name of SQL server and Database name fields.Ĭhanges made to the configuration file become effective within one minute.‘What should I put in the application connection string?’
Use the text editor to make the necessary changes to the SQL server connection settings.įor a description of the SQL server connection string settings, you can refer to the Microsoft website via the following link: connection string settings. When the application is installed, the value of this setting is automatically defined by the application based on the information provided by the administrator. Find the tag named AdditionalConnectionParameters. Open the SQL server configuration file in a text editor. To change the additional settings of the SQL server connection string: When the application is installed, data in the SQL server connection string is saved in the following configuration file in XML format: You can change the additional settings of the SQL server connection string. Modifying the additional settings of the SQL server connection string