Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
C# Code for frequently checking if a new data was inserted into a sql server 2012 database.
Posted
Comments
Richard C Bishop 1-Oct-13 10:40am    
Thank you for that statement.
ridoy 1-Oct-13 10:42am    
so what have you done yet and what do you mean by frequently?
Alexander Dymshyts 1-Oct-13 11:08am    
Have you ever heard about Google?
Tshego21 1-Oct-13 12:04pm    
yep but i can't find relevant info.
Tshego21 1-Oct-13 12:03pm    
i just need to display an information when a new row was inserted by user A to alert User B without clicking a button to refresh so that he/she can see what new data was inserted, those users are from different place and use the same database on a server.

Why on earth would you want to do that?
Use an SqlDependancy[^] and let the DB tell you!

This should help: http://blogs.microsoft.co.il/blogs/oshvartz/archive/2008/06/07/query-notification-dependency-sqldependency-class.aspx[^]
 
Share this answer
 
http://msdn.microsoft.com/en-us/library/7a2f3ay4%28v=vs.90%29.aspx[^]


This link was helpful to me, hope it will assist someone too :)
 
Share this answer
 
v2

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