I have a table with 20.000 records (persons).
Users on four or five computers insert, update or delete records but must at all times have access to real-time data.
If a user on a computer marks a person with a flag, or inserts a new person, all the users must see that in real-time.
Is there a way ?
I'm using a datagridview to display the information from the persons table.
Any suggestions please ?
A stupid solution was to execute a query on each rowenter event of the datagridview and retrieve information directly from the table and display it in text fields, but that does not solve my problem with the inserted records.
I think best way to do this is making a client/server application where the client subscribes to the server. If any client makes a change, all subscribed clients are notified.
A way to achieve this is using WCF.
Take a look here. This is a simple WCF project where this subscription pattern is used.
1) Remoting is VERY difficult to get "right" when dealing with cross-machine communication.
2) WCF is available as an "Extension" so it CAN be used with VS-2005, although it is MUCH preferred to use VS-2008 and .NET 3.5
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!) 2008, 2009 In theory, there is no difference between theory and paractice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
Bookmarks