Click here to Skip to main content
15,889,335 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
Hi,

I have created a windows application for a single user, Using C# and Sql. Now I need to convert the same application for multiple users. My req. is that many users can use the application at a time and database should be updated, accessed,.. at/from one place.

Pls guide me how to proceed further.

Thanx in adv. :)
Posted
Comments
Sergey Alexandrovich Kryukov 1-Apr-14 6:40am    
The question makes no sense as is. Why do you think you application is only for one user? :-)
—SA

Use the connection Pooling Technique in DB Layer and in procedure use NOLOCK.
 
Share this answer
 
Comments
Pdeveloper 1-Apr-14 6:56am    
Thanx for u reply will Google these terms and try to implement this in my app, as I have no idea about pooling and NOLOCK.
Hi Pdeveloper!
The similar question has already been asked here:
Multi User in C# Applications[^]
 
Share this answer
 
Comments
Volynsky Alex 1-Apr-14 7:17am    
This is a very interesting question of "how to create windows application for multiple users" and is a bit broad for a "quick answer" here.
I will offer these four links as a good starting point for you:
http://msdn.microsoft.com/en-us/library/bb384570.aspx
http://msdn.microsoft.com/en-us/library/ms973279.aspx
http://msdn.microsoft.com/en-us/library/cc178916%28v=vs.90%29.aspx
http://msdn.microsoft.com/en-us/library/ms978384.aspx
Regards,
Alex.
design / develop the application as normal, adding user authentication to control users loging in to the application. Application instances can use the same database that is stored remotely on a server. You may need to optimise sql to accomodate transactions.
 
Share this answer
 
Comments
Pdeveloper 1-Apr-14 6:54am    
Thanx for ur reply, but my database is not stored remotely, its on the same machine as of now.
so u mean first create the server to install sql server and then create users.
but how to optimize the transactions from differnt machines ? can u provide me any link where I can get step by step procedure for this kind of app ?

I have really no idea

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