I got a C# program installed in 5 different machines, pointing to the same database, running at the same time. The database is running on Machine A. 3 machines are running Windows Server 2016 (including A) and others are running Windows 10. None of them are virtual.
I am using 3 different connection strings:
connectionString="Data Source=SERVERNAME\INSTANCENAME;Initial Catalog=myDataBase;Persist Security Info=True;User ID=myUsername;Password=myPassword
- used on machine A (Windows Server 2016)connectionString="Data Source=IP\INSTANCENAME;Initial Catalog=myDataBase;Persist Security Info=True;User ID=myUsername;Password=myPassword
- used on 1 Windows Server 2016 machineconnectionString="Data Source=IP\PORT;Initial Catalog=myDataBase;Persist Security Info=True;User ID=myUsername;Password=myPassword
- used on all other machines
Sometimes this error shows up while trying to insert data into the database. The "Maximum number of concurrent connections" on SQL Server Management Studio is set to unlimited and all machines have different names.