473,325 Members | 2,480 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,325 software developers and data experts.

Cache dependency for SQL database changed

Hi all,

it seems that the only CacheDependency for an object is time or a file.
I like to renew a dataset in the server-cache once the belonging SQL
database is changed!

Anybody any idea?

Thanx a lot for support!
Steffen

Nov 19 '05 #1
2 1101
Steffen,

Consider making an external stored procedure that will write a file and
calling it from a database trigger.

Eliyahu

"Steffen Loringer" <st**************@freenet.de> wrote in message
news:3e************@news.dfncis.de...
Hi all,

it seems that the only CacheDependency for an object is time or a file.
I like to renew a dataset in the server-cache once the belonging SQL
database is changed!

Anybody any idea?

Thanx a lot for support!
Steffen

Nov 19 '05 #2
It will be in .NET 2.0.

Meanwhile, you could likely use a trick such as :
http://www.eggheadcafe.com/articles/20030716.aspto
do this with 1.1

Patrice

--

"Steffen Loringer" <st**************@freenet.de> a écrit dans le message de
news:3e************@news.dfncis.de...
Hi all,

it seems that the only CacheDependency for an object is time or a file.
I like to renew a dataset in the server-cache once the belonging SQL
database is changed!

Anybody any idea?

Thanx a lot for support!
Steffen

Nov 19 '05 #3

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

Similar topics

1
by: martin | last post by:
Hi, I have a page that contain a dropdown list of values. This drop down list rarely changes so I wish to cache the page. However the values in the dropdown box are taken from a database, so if...
1
by: Steffen Loringer | last post by:
Hi, i like to store some data in the Cache on the server. The data should be removed once a file on the server is changed (I'm using a Cache.Dependency). Because the data should be reloaded into...
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 -...
5
by: Darrel | last post by:
I thought this warranted a new thread. Yesterday I asked about access relatively static content...is it better to read from the DB, or just grab a text file. It was suggested that I use the DB...
1
by: Keithb | last post by:
Is there any way to create a cache dependency based on a folder in the server file system? My application needs to drop a table in the cache if any files are changed in a server file folder or its...
4
by: RedHair | last post by:
Development: Windows 2003 Production :Windows 2003 ASP.NET 2.0 + C# I want to disable the cache feature of all pages in dev but enable it in production environments. What's the solution? If...
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
1
by: dherbstemail-ng | last post by:
I can get the SQL Server 2005 CommandNotification cache dependency to work with inline SQL. It works in a SqlDataSource as well as with the page OutputCache when making ADO.NET calls. Next I...
3
by: mrutyunjaya | last post by:
if (Cache==null) { SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings.ConnectionString); SqlDataAdapter mydataadapter = new...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.