Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am having one application built in C# winforms. In the backend I am using SQLSERVER 2008 Express. The application is used remotely through thin clients.

My problem is that when one user is using my software and a 2nd user tries to open the software and tries to make any operation on the database, the database refuses to connect. Only when the first user closes the application, the second user can operate the database queries.
Posted
Comments
OriginalGriff 23-Dec-13 7:07am    
How are you connecting?
What queries are you running? Do you release connections?

You need to set SQL Express to allow remote connections

http://blogs.msdn.com/b/sqlexpress/archive/2005/05/05/415084.aspx[^]

also check to make sure that the database is not in single user mode.
 
Share this answer
 
v2
use disconnected ADO.net architecture for your application.
 
Share this answer
 
Comments
Reshma Khaire 23-Dec-13 7:12am    
I am using same but not able to access db from another computer.
Gaurav Makwana 23-Dec-13 7:12am    
use dataset to solve it
Vishal Pand3y 23-Dec-13 7:21am    
there might be some mistake in your code post your code here
Check out your database set not a single user. for more try this link http://stackoverflow.com/questions/6587360/change-to-database-to-online-and-set-db-to-multi-user[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900