sqldependency - Cache drop if query has WHERE Clause -


I am using the SqlDependency and CacheManager class (Enterprise Library Cachcing Block) to create a cache in the vb.net project .

I have a registration

  on-dependent change (as an object in the form of a sub-sender, as a squalching an Avent ARG)   method to get information back to SQL Server 2005. 

The problem is that if the query does not contain any WHERE clauses, the cache is successfully created, but if I If you add a clause to the query then theandianspenscise () method will get information soon The cache has been created

I suggest that it is possible to have a WHERE clause in the query used for caching. My query (with the WHERE clause) is:

  SELECT [DATABASES_ID], [DATABASENAME], [SERVERNAME] FROM [dbo] [Database] WHERE datediff (dd, getdate (), [DATECREATED]) & lt; = 0  

Thanks Brijesh

Check out the limits of SQL appencing questions Removing this article

Note specifically:

This statement does not use any of the ethical functions including ranking and windowing functions should do .

GETDATE () is such a task.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -