When executing integration tests, I'm using a connection string to connect to the database. I know there is a default notation for connecting to the default server instance in a connection string:
data source=.;initial catalog=[database name];integrated security=SSPI;
Unfortunately the database is currently not installed on the default server and due to compatibility issues I am unable to change to the default server. Now for all my tests, I will have to assign the sever name like so:
data source=[My Server name] ;initial catalog=[database name];integrated security=SSPI;
Since the solution is shared, I can't check this configuration in, and I'll have to do a lot of manual maintenance for this.
Is there any way I can change the default SQL Server for my PC, so that I can use the connection string as shown in the first example?
EDIT:
I was able to successfully use the following connection string:
data source=.\SQLEXPRESS;initial catalog=[database name];integrated security=SSPI;
EDIT 2:
I was able to resolve my issue by this awnser