?
Solved

What is sqlCacheDependency?

Posted on 2007-11-16
4
Medium Priority
?
506 Views
Last Modified: 2008-02-01
Can anyone tell me what this block of code below means? What it's used for? Why have it there?

Thanks!
<caching>
	<sqlCacheDependency enabled="true" pollTime="1000">
		<databases>
			<add name="Pubs" connectionStringName="Pubs"/>
		</databases>
	</sqlCacheDependency>
</caching>

Open in new window

0
Comment
Question by:John Account
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 9

Accepted Solution

by:
hismightiness earned 1000 total points
ID: 20300266
That sections allows ASP.Net to work in conjunction with the SQL Server to provide caching of data on-the-fly.  This results in a faster application for the end-user, but more processing time on the server.
0
 
LVL 9

Expert Comment

by:hismightiness
ID: 20300275
To be more specific, the data in the location specified in the Pubs connection string is cached for 1000 seconds, and this dependency is enabled right now.
0
 
LVL 17

Assisted Solution

by:ZeonFlash
ZeonFlash earned 1000 total points
ID: 20300281
It basically watches the database to see if there are any changes made, and if so, invalidates the cache.

http://dotnetslackers.com/articles/sql/TheSqlCacheDependencyClass.aspx
0
 

Author Comment

by:John Account
ID: 20300888
Thanks, guys. I appreciate it very much!
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question