ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
what is SQL cache Invalidation?
 Question Submitted By :: Jvskishore
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is SQL cache Invalidation?
Answer
# 1
SQL cache invalidation enables you to make the cache entry 
dependent on the database, so the cache entry will only be 
cleared when data in the database is changed.

Polling-based Invalidation
This mechanism uses polling to check if a table has been 
updated since the page was cached.

SQL Server 2005 Notification-based Cache Invalidation
This mechanism uses the query change notification mechanism 
of Sql Server 2005 to detect changes to the results of 
queries. Unlike polling based invalidation for Sql Server 
7.0 and 2000, notification based invalidation requires much 
less setup. 

1. Unlike polling based validation, no <sqlCacheDependency> 
needs to be registered in your application's configuration. 
Furthermore, no special configuration using the 
aspnet_regsql.exe tool is needed. 

2. A notification based dependency is configured on the 
OutputCache directive using the string CommandNotification. 
This value indicates to ASP.NET that a notification based 
dependency should be created for the page or datasource 
control.

3. System.Data.SqlClient.SqlDependency.Start() method must 
be called somewhere in the application before the first SQL 
query is executed. This method could be placed in 
Application_Start() event in global.asax file. 

Whenever a command is issued to Sql Server 2005, ASP.NET 
and ADO.NET will automatically create a cache dependency 
that listens to change notifications sent from the SQL 
Server. As data is changed in Sql Server, these 
notifications will cause the cached queries to be 
invalidated on the web server. The next time a page or 
datasource control associated with the dependency is 
requested, the page or datasource control will be executed 
again as opposed to serving cached information.
 
Is This Answer Correct ?    6 Yes 0 No
Jitender.chauhan
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
Can u able to get the xml document in crystal report if yes how its possible  1
can i use store procedure in disconnected mode? give me answer  2
Difference between ASP Session and ASP.NET Session?  1
define silverlight and advantages ?  2
To call a Web service SOAP which transport protocol you use?  2
Does the following statement executes successfully: Response.Write(?value of i = ? + i); TCS4
what is DLL Hell and how it is solved in .NET? icegen9
When web.config is called ? Keane-India-Ltd2
About Garbage Collector? Microsoft3
What is boxing and unboxing ? Accenture6
how to update data using store procedure  1
Define Query Interface,Adref,Release? Microsoft1
my name is sumeetha i am using google gears in .net.what's the problem is my server is in another place. i am working here when i entered the values in textboxes and press enter then it should store in database(sql server) which is in another system.when that sever system is shutdown then the values which i submit should store in my system and after system opened it should automatically store the values in the system can any one plz urgent suggest answer for this question?  2
what is webpart? what r the parts in this webpart (zone)  1
What is boxing? Misys4
How does the XmlSerializer work? What ACL permissions does a process using it require?  1
difference between gridview,data list and repeater control Olive-Tech4
Singleton Design pattern?How do you achieve it? Microsoft2
How many types are there session TCS5
What is interval time of GC in .net  2
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com