C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

Give step by step process of SQLCacheDependency


Posted Date: 04 Dec 2008      Posted By: Monisha      Member Level: Gold     Points: 1   Responses: 4



Give step by step process of SQLCacheDependency.




Responses

Author: saravanakumar    04 Dec 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 1

hi monisha,

check this URl,

http://msdn.microsoft.com/en-us/library/system.web.caching.sqlcachedependency.aspx

regards,
saravan



Author: raj    04 Dec 2008Member Level: BronzeRating: 2 out of 52 out of 5     Points: 1

Hi ,
Check the following URL.

http://apnasaathi.blogspot.com/2006/11/cache.html

regards
..raj



Author: Patel    04 Dec 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 6

To utilize the new SQL Server Cache Dependency feature in ASP.NET 2.0, you must perform a one-time setup of your SQL Server database. To set up your SQL Server, use the aspnet_regsql.exe tool found at C:\Windows\Microsoft.NET\Framework\v2.0xxxxx\. This tool makes the necessary modifications to SQL Server so that you can start working with the new SQL cache invalidation features.

Follow these steps when using the new SQL Server Cache Dependency features:

Enable your database for SQL Cache Dependency support.

Enable a table or tables for SQL Cache Dependency support.

Include SQL connection string details in the ASP.NET application’s web.config.

Utilize the SQL Cache Dependency features in one of the following ways:

Programmatically create a SqlCacheDependency object in code.

Add a SqlDependency attribute to an OutputCache directive.

Add a SqlCacheDependency instance to the Response object via Response.AddCacheDependency.

aspnet_regsql.exe -?

This code outputs the help command list for this command-line tool, as shown in the following:

-- SQL CACHE DEPENDENCY OPTIONS --

-d <database> Database name for use with SQL cache dependency. The
database can optionally be specified using the
connection string with the -c option instead.
(Required)

-ed Enable a database for SQL cache dependency.

-dd Disable a database for SQL cache dependency.

-et Enable a table for SQL cache dependency. Requires -t
option.

-dt Disable a table for SQL cache dependency. Requires -t
option.

-t <table> Name of the table to enable or disable for SQL cache
dependency. Requires -et or -dt option.

-lt List all tables enabled for SQL cache dependency.



Author: Deepika Haridas    04 Dec 2008Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

Hi,

Check out this link

1) http://www.asp.net/learn/data-access/tutorial-61-cs.aspx
2) http://www.dotnetspider.com/resources/18424-Using-SQLCacheDependency-Class-ASP-Net-SQL-server.aspx
3) http://www.ondotnet.com/pub/a/dotnet/2005/01/17/sqlcachedependency.html

regards,
deepika



Thanks & Regards,
Deepika
Editor

If U want to shine like a SUN..First U have to burn like the SUN!!
Need a Guide? Join my mentor program..



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : File Upload
Previous : Dropdown list
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use