Hi,
I have a wierd problem about the SqlCacheDepende ncy class. It just
works for a couple of minutes. After 2 minutes or more, the cache does
not expire anymore. I'm using SQL Server 2005 as database.
Here is the code:
private string getTime()
{
string time = (string)Cache["KEY"];
if (time == null)
{
SqlConnection sqlConnection = new
SqlConnection(@ "Server=BIZYUSU F\SQL2005;Datab ase=Deneme2;Use r
Id=sa;Password= ;");
SqlCommand command = new SqlCommand(@"se lect KOLON1 from
dbo.CACHE_DENEM E3", sqlConnection);
sqlConnection.O pen();
SqlCacheDepende ncy dependency = new SqlCacheDepende ncy(command);
time = System.DateTime .Now.ToString() ;
Cache.Insert("K EY", time, dependency);
command.Execute Reader();
sqlConnection.C lose();
}
return time;
}
When there is no activity for 2-3 minutes , the cache does not expire
anymore. Even that I insert a record to the CACHE_DENEME3 table, the
page reads from the cache.
Am I the only person, encountering this issue ? 1 1697
"Yosi" wrote: I have a wierd problem about the SqlCacheDepende ncy class. It just works for a couple of minutes. After 2 minutes or more, the cache does not expire anymore. I'm using SQL Server 2005 as database.
When there is no activity for 2-3 minutes , the cache does not expire anymore. Even that I insert a record to the CACHE_DENEME3 table, the page reads from the cache. Am I the only person, encountering this issue ?
Yosi,
Microsoft has release a hotfix that addresses this problem: http://support.microsoft.com/kb/913364/EN-US/
=============== =====
Duncan Smith [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: stewart |
last post by:
I've got the standard SqlCacheDependency working just fine , ie. I've
defined (and encrypted) the connectionStrings section in the web.config, and
I've also defined an an sqlCacheDependency in the caching section. So, in my
code I add an item to the cache with an sqlCacheDependency, referencing the
named sqlCacheDependency in the web.config and the database table it is to
be based on (have enabled notificiations for that table). Fine.
...
|
by: Adrian Parker |
last post by:
I've got the standard SqlCacheDependency working just fine , ie. I've
defined (and encrypted) the connectionStrings section in the web.config, and
I've also defined an an sqlCacheDependency in the caching section. So, in my
code I add an item to the cache with an sqlCacheDependency, referencing the
named sqlCacheDependency in the web.config and the database table it is to
be based on (have enabled notificiations for that table). Fine.
...
|
by: Joel Barsotti |
last post by:
I'm trying to get sql cache dependency working correctly.
I've got sql server 2005 for my back end.
I've don the "ALTER DATABASE dbName SET broker_enable" command.
I made sure the user in my connection string has subscripe notifications
permission set to grant.
But now it seems that the cache is kicking my product out of the cache
|
by: chris |
last post by:
Hello all,
Background: Using .NET 2.0, Sql Server 2005, SqlCacheDependency is
utilized successfully against SqlCommand objects elsewhere in the code
(in other words I have successful instances of using
SqlCacheDependency). ASP.NET website built in 3 separate tiers:
Presentation, Business Logic Layer (BLL), and Data Access Layer (DAL).
I have a strongly typed data set that is utilized by my BLL and returns
|
by: J055 |
last post by:
Hi
I've been trying out SqlCacheDependency using the ObjectDataSource and SQL
Server 2005. It all works quite well with the minimum of configuration, e.g.
<asp:ObjectDataSource ID="odsAccounts" runat="server" ...
EnableCaching="true" SqlCacheDependency="CommandNotification">
....
</asp:ObjectDataSource>
| |
by: Reinout |
last post by:
Hi
I set up a sql cache dependency, but always receive a "DependencyChanged" notification straight away (through CacheItemRemoved callback). Modifying the procedure didn't help me.
It used to work running on a SQL 2000 database with a SqlDataSource and a few things set in the configuration file.
The current setup is using SQL 2005 Express and caching in the datalayer/business objects.
Running profiler, I notice events ran by the...
|
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 to work with 11 tables in the
database. When I update the database without actually changing the
"PensionFund" table then I notice that the Cache is being invalidated
|
by: |
last post by:
Hey Guys,
I have been struggling with this for few days. when i use
SqlCacheDependency sqlDependency=new
SqlCacheDependency("test","dbo.USStates");
where test is the name of connectionstring and dbo.USStates is the table
|
by: Adrian |
last post by:
Hi, I'm trying to add caching to our asp app, but am having problems with the SQLCacheDependancy not invalidating the cache when the table changes.
Using vs2008, sqlserver 2005 developer edition.
So far I've added the following to the application_start event..
System.Data.SqlClient.SqlDependency.Start("connectionstring as the sa user")
and against the db, I did
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |