EDIT AFTER BEING MARKED AS DUPLICATE:
How This Question Is Different From Previously Asked Question No offense , correct me if i am wrong i will simply delete this question if it is a duplicate :)
I have followed MSDN SqlDenpendancy
article but is constantly checking for change in record.. making the application too slow
I can email complete application with database backup if someone needs it..
Thanks a lot
BACKGROUND:
I don't it is called that I want to achieve. I can only explain what I want to achieve. Both answers are appreciated either to let me know the name of the task that I want to achieve, what it is called so I can Google It efficiently or if you can tell me the solution of the task that I want to achieve step by step.
I am currently not that good in programming either.
TASK:
What I want to achieve is a functionality in which both/multiple users have a same C# application from that they are making data transactions from a same database and once a record is updated in the database from any computer now it should automatically updated in the second/all the computers.
EXPLANATION WITH EXAMPLE:
In database I have a table CUSTOMERS
. In application on a single form, I have a data grid view that shows all customers and text columns with a button to add new customers.
Now if we think programmatically, if user adds a customer from COMPUTER ‘’1’’ After the code of adding data I will just have to refresh grid view in code by again calling the stored procedure from database that gets all customers for me so now the user of COMPUTER ‘’1’’ can see which all customers
But at the moment user from COMPUTER “2” cannot see the change in his/her data grid view until unless he/she adds a new record himself/herself..
WAYS I DON'T WANT TO ACHIEVE THIS TASK
I can do I by refreshing the grid view in application code every 5 - 10 seconds or but that would make the application run slower an ineffectively because all the load is on client's computer.
SOLUTION THAT I CAN THINK OF:
I can write a trigger that fires whenever a table uploads.. now I need to somehow know in the C# code that the trigger was fired without constantly checking for it because it is making the app too slow