How to configure SQL Cache Invalidation#

The caching mechanism in ASP.NET 2.0 has been extended (very logically) to include SQL cache invalidation.  If you have SQL 2005 then your are ready to go, however if you are using SQL 7 or SQL 2000 then a bit of configuration is in order.

Step one must be executed for each database and step two must be executed for each table.  Execute these commands from the Visual Studio.NET 2005 command line.

1.  Activate the database.  If you are using SQL security use A, if you are using Windows security use B.

   A.  aspnet_regsql.exe -S server -U user -P password -d database -ed
   B.  aspnet_regsql.exe -S server -E -d database -ed
 

2.  Activate the table.  If you are using SQL security use A, if you are using Windows security use B.        

   A.  aspnet_regsql.exe -S server -U user -P password -d database -t table -et
   B.  aspnet_regsql.exe -S server -E -d database -t table -et

That's it.  You should be ready to rolll.  In the next post I will show you what you need to do in ASP.NET to make this work for you.

 | 
Wednesday, June 07, 2006 1:50:50 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

All content © 2009, prag
On this page
This site
Calendar
<January 2009>
SunMonTueWedThuFriSat
28293031123
45678910
11121314151617
18192021222324
25262728293031
1234567
Archives
Sitemap
Blogroll OPML
Disclaimer

Powered by: newtelligence dasBlog 1.9.6264.0

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Send mail to the author(s) E-mail

Theme design by Jelle Druyts