Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi
I am developing c# application with sql notification and sqldependency.
if particular record is updated in database table in sql server,I want to get that record details in c# application

but now i am getting all records popup if one record is updated

Please help me .

Thanks and regards
N.Ramachandran

What I have tried:

populate data in c# if any change in database using sqlnotification
Posted
Updated 29-Nov-16 1:22am
Comments
Richard Deeming 29-Nov-16 7:59am    

Hi,
You can use trigger for getting update details of record.
You can also use scope identity in sql server.
 
Share this answer
 
Hi Ramachandran,

As I understand, you only want the modified record sent to your C# application when an insert, update, or delete is performed.

Take a look at the CodePlex project SqlTableDependency here: Audit, monitor and receive SQL Server table change notifications - Home[^]

SqlTableDependency seems to be able to do exactly what you require.

Regards,
Mark
 
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