473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How Cache gets updated using SqlCacheDependency

I read an article :

MSDN help topic. This will get you on the right track.
http://msdn2.microsoft.com/en-us/lib...ependency.aspx

and its really amazing .. I tried it out and got succeeded , now I just
want to know whether is there any possibility to update the cache once
I change the database ,
say: I have inserted the data's ( which is from database to dataset)
into the cache for the first time and now if I run the program again
then the item is displayed from cache.. its great but once I change the
database, the cache gets null and again the query is executed and again
the data's are taken from the database , i need to know whether is
there anything that is updated to the cache without making the cache
null so that the query doesn't execute again .

Like I don't want to update the cache from ASP.net coding like
Cache.Insert("Tablename", Datasetname, dependency);
But I want that to be pused from the database to the cache so that the
cache gets updated.
Is it possible? BIT CURIOUS...

Aug 30 '06 #1
0 1421

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Guadala Harry | last post by:
I want to create a STATIC method that removes all items from the Cache. Questions: 1. Is a safe thing to do (any threading issues?) 2. Is the following code a good way to get the job done -...
0
by: Jayender | last post by:
I read an article : MSDN help topic. This will get you on the right track. http://msdn2.microsoft.com/en-us/library/system.web.caching.sqlcachedependency.aspx and its really amazing .. I tried...
2
by: Enosh Chang | last post by:
Hi all: I want to use System.Web.Caching.Cache in my web application, but I want to know the lifecycle of Cache (depending on Page, Session or Application ...). Thanks! Enosh
8
by: brett | last post by:
How do I add a string to the cache so that it updates if the string source changes? CacheDependency() seems to want an absolute path. My string is a full http link. Thanks, Brett
2
by: mrashidsaleem | last post by:
Using the SQL 2005 "query notification" caching mechanism, I am caching three columns (UserId, UserName, Password) of a table called UserInfo in my web application cache. However, the cache gets...
1
by: mark4asp | last post by:
Help: SQLCacheDependency not working. When I step through my code with the debugger I notice that the condition below: (cacheItem == null) is always true. I have setup SQLCacheDependency...
4
by: Supremelink | last post by:
Hi all, I have a (in my opinion) strange problem. I created an application that are extracting exchange rates from a web page and then inserts those in a ms sql database. When I´m running...
1
by: yashgt | last post by:
Hi, We have a control Logo.ascx, which queries the DB to obtain the logo image from a blob in the DB and renders it on the page. The logo does not change frequently and hence we have tried to...
3
by: mrutyunjaya | last post by:
if (Cache==null) { SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings.ConnectionString); SqlDataAdapter mydataadapter = new...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.