How efficient SqlDependency (Service Broker) is compared to query by timer?
问题 I need to notify users (around 100 clients) of my software (C#, .NET 3.5) when there are new records added in one of the tables of my database (SQL Server 2008). If I understand it right, such operation should qualify as cache invalidation which is exactly what is SqlDependency for, please correct me on this one if I'm wrong. For that I can see 2 options: SqlDependency which will allow me to receive practically realtime notifications. Checking table by some timer. But I never used