Click here to Skip to main content
15,907,149 members
Home / Discussions / Database
   

Database

 
GeneralRe: C# SQL INSERT String??? Pin
gman4415-Aug-04 4:03
gman4415-Aug-04 4:03 
AnswerRe: C# SQL INSERT String??? Pin
S Sansanwal15-Aug-04 17:07
S Sansanwal15-Aug-04 17:07 
GeneralSELECT in UPDATE statement Pin
blopf13-Aug-04 9:28
blopf13-Aug-04 9:28 
GeneralRe: SELECT in UPDATE statement Pin
Colin Angus Mackay13-Aug-04 12:50
Colin Angus Mackay13-Aug-04 12:50 
GeneralRe: SELECT in UPDATE statement Pin
blopf15-Aug-04 4:19
blopf15-Aug-04 4:19 
GeneralRe: SELECT in UPDATE statement Pin
Mike Dimmick15-Aug-04 9:11
Mike Dimmick15-Aug-04 9:11 
GeneralRe: SELECT in UPDATE statement Pin
EdbertP15-Aug-04 22:33
EdbertP15-Aug-04 22:33 
GeneralSQL Server 2005 Notification Services Pin
James Coleman13-Aug-04 7:50
James Coleman13-Aug-04 7:50 
THE SHORT VERSION OF THE QUESTION
How would I leverage SQL Server 2005 Notification Services to notify my asp.net page (or control) that the data it has cached is out of date? The Notification Samples get into specific data (stock prices) being updated past a target value which is a little too detailed for what I want. I just want to be notified when a table change has occured and should expire my cache that is dependant upon that data.

THE LONG VERSION OF THE QUESTION
So I have been reading up on new ways to cache with ASP.NET 2.0 and came across a good article regarding it here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/SecFeatNT2.asp

It has a note in the article that states:
Note Microsoft SQL Server 2005 supports a completely different method of SQL Cache Invalidation. You can configure SQL Server 2005 to notify your ASP.NET application whenever changes have been made to a database, a database table, or a database row. This means that the ASP.NET Framework does not need to constantly poll a SQL Server 2005 database for changes.

After looking around for quite a while I discovered Notification Services within SQL Server 2005 which is rather cool in that instead of the ASP.NET application polling the server every so often it actually subscribes to the Notification Service and is notified if the event has occurred.

There are some Notification Services samples that one can install and play around with and I found the framework to be pretty flexible and like it a lot. However, I am still a little confused on how to accomplish the approach in the ASP.NET caching article using Notification Services.

Any direction or help would be appreciated.
-james

___________________________
J A M E S    C O L E M A N
Practice Director, Microsoft
AGENCY.COM
jcoleman@agency.com
http://www.agency.com
GeneralComlex Query vs Multiple Queries Pin
iamalik13-Aug-04 6:41
professionaliamalik13-Aug-04 6:41 
GeneralRe: Comlex Query vs Multiple Queries Pin
Chris Meech13-Aug-04 6:49
Chris Meech13-Aug-04 6:49 
GeneralRe: Comlex Query vs Multiple Queries Pin
iamalik13-Aug-04 7:14
professionaliamalik13-Aug-04 7:14 
GeneralRe: Comlex Query vs Multiple Queries Pin
Colin Angus Mackay13-Aug-04 12:54
Colin Angus Mackay13-Aug-04 12:54 
GeneralRe: Comlex Query vs Multiple Queries Pin
Steven Campbell13-Aug-04 15:36
Steven Campbell13-Aug-04 15:36 
GeneralUpdate Database Pin
jzb13-Aug-04 6:12
jzb13-Aug-04 6:12 
GeneralRe: Update Database Pin
Colin Angus Mackay13-Aug-04 12:57
Colin Angus Mackay13-Aug-04 12:57 
Generalstart MSSQLServer Service from windows 98 Pin
Renjith Ramachandran13-Aug-04 1:07
Renjith Ramachandran13-Aug-04 1:07 
GeneralRe: start MSSQLServer Service from windows 98 Pin
Colin Angus Mackay13-Aug-04 3:46
Colin Angus Mackay13-Aug-04 3:46 
GeneralRe: start MSSQLServer Service from windows 98 Pin
Renjith Ramachandran13-Aug-04 5:26
Renjith Ramachandran13-Aug-04 5:26 
GeneralRe: start MSSQLServer Service from windows 98 Pin
Colin Angus Mackay13-Aug-04 13:09
Colin Angus Mackay13-Aug-04 13:09 
GeneralODBC Pin
lawred212-Aug-04 4:02
lawred212-Aug-04 4:02 
GeneralRe: ODBC Pin
Chris Meech13-Aug-04 6:56
Chris Meech13-Aug-04 6:56 
Generalcompare values from user to database using C# Pin
dyerstein11-Aug-04 14:56
dyerstein11-Aug-04 14:56 
GeneralRe: compare values from user to database using C# Pin
Colin Angus Mackay12-Aug-04 0:10
Colin Angus Mackay12-Aug-04 0:10 
GeneralRe: compare values from user to database using C# Pin
dyerstein16-Aug-04 5:34
dyerstein16-Aug-04 5:34 
GeneralVB.NET Console application and SQLServer Pin
sybux200011-Aug-04 4:54
sybux200011-Aug-04 4:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.