I am working on a code base that has a number of connection strings that access a database server by a specified name.
<add name="myConnection"
connectionString="Data Source=DevServer;Initial Catalog='devData';Persist Security Info=True;User ID=devUser;Password=devPass;"
providerName="System.Data.SqlClient" />
I am in a location that does not have access to the named "DevServer" Data Source.
I have a version of the database hosted locally in "localhost".
What I would like to do is have my "localhost" database accessible via the Data Source named "DevServer".
I don't want to lose the ability to access the server via "localhost" as I have other projects that use this as a Data Source. I could alter the config files, but I would then have to ensure that I don't check them in, as that would break the configuration for others. I still want to receive any updates to the config files, so having local writeable versions is not an option.
I have tried using the SQL Server Configuration Manager to create an Alias, but I think that I did something wrong as I am still unable to connect using "DevServer".
Should SQL Server Configuration Manager be able to achieve what I am trying?
Can anyone suggest a way that I can achieve this?
I guess my question is similar to this but there has been no accepted answer and it is for SQL Express.