I want to know about connection string without database name is working or not, i have built a web api in visual studio, but it is built without entity framework. In the web api all the code is same, but database are different, those are exist databases in sql server management studio and those database are from different computer and i want to try and call these api from cloud server(actually there are only 5 databases in 3 different computer). All 5 databases have different name.
What can i do to the connection string for these databases, and i don't want to change the database name in the sql server. Is there any possible way to code the connection string in my expected way?
<add name="MyConnection" connectionString="Server=.;Database=(different dbname);User Id=owner; Password=1234" providerName="System.Data.SqlClient"/>
dot can equal to all location in the connection string as i know.