I've developed a C# Linq to SQL accounting program. It has an SQL Server 2008 Express Edition. The program worked fine for one client, but when I tried to create a second client on another computer, although I have enabled remote access for the DB, I have noticed that accessing the DB by the two clients at the same time doesn't happen! just the first client who requested the DB can access it, and the other one couldn't until I close the application on the first one.
I've tried to create a new SQL USER (Login) for the other computer, but the same error occurs.
The full exception message is: Cannot open database "XXXX" requested by the login. The login failed. Login failed for user 'USERNAME' END OF THE ERROR MESSAGE
Thankfully hope to solve my issue.
Check your Maximum number of concurrent connections in your Server Properties. 0 = unlimited. It's possible it's been set to 1. (Right-click context menu on your server from SQL Server Management Studio.)