Sunday, February 12, 2012

Auto-Refresh for SQL Grids displaying SQL Server Data

Functionallity of the Application--

"We have a large legacy application using SQL Server 2000. We're gradually adding .NET WinForms controls to it, using the IdeaBlade DevForce package as the data access layer, and primarily Infragistics Grids and other controls for display. We're using Visual Studio 2005, and plan to migrate to SQL Server 2005 pending validation, but I need a solution that works for 2000."

Problem description--

"I would like a mechanism to allow grid displays to automatically update when any change is made to one of the tables that contributes data to it. I'd like the mechanism to be event driven using some kind of publish/subscribe model. "

Challenges-

"Instead of using notification services ,any triggers or extended stored procedures if suffice this issues ,help me out in this regard."

Of course, Query Notifications in SS2005 will be of great interest to you. But that doesn't help in the meantime.

ASP.NET 2.0 has some cache notifications for SQL Server 2000 that you may want to check out as being something you can tweak to fit your needs. Here are a couple of articles that may help.

http://www.c-sharpcorner.com/UploadFile/mosessaur/sqlcachedependency01292006135138PM/sqlcachedependency.aspx?ArticleID=3caa7d32-dce0-44dc-8769-77f8448e76bc

http://www.15seconds.com/issue/040518.htm

You can use SSNS for this, but it'll require that you develop a custom delivery protocol to notify the client app.

HTH...

Joe

No comments:

Post a Comment