Можно ли отслеживать несколько изменений табличных данных с помощью зависимости SQL table?
Hi All i want a solution that tell me how to monitor multi-table data change in c# console application. i used SqltableDependency for one table and work Fine , but i want monitor multi tables How to Monitor multiple Tables data change in sql server From console application ???
Что я уже пробовал:
using (var tabledependency = new SqlTableDependency<Products>(connectionString, "Products")) { tabledependency.OnChanged += tableDependencyChanged; tabledependency.OnError += tableDependencyOnError; tabledependency.Start(); Console.WriteLine("Waiting to Receive Notifications"); Console.WriteLine("Press a key to stop"); Console.ReadKey(); tabledependency.Stop(); }