Solved

SQL Server events

Posted on 2002-04-27
6
159 Views
Last Modified: 2010-05-02
I currently have an app that polls (using a timer with the interval set to 1000) a SQL Server table looking for changes to records.

The problem is that this has a serious impact on the performance of my system.

I was wondering if it was possible to get SQL Server to send notification to my VB application if any of the records change.
0
Comment
Question by:justinhemphill
6 Comments
 
LVL 10

Expert Comment

by:smegghead
ID: 6973196
You could create an SQL trigger, which, in turn notifies your application using some other method...
0
 
LVL 1

Author Comment

by:justinhemphill
ID: 6973203
I'm not sure how to do that.
0
 
LVL 1

Expert Comment

by:falconew
ID: 6973210
Create an Extended Store procedure to notify your application and create a trigger to the table you want to monitor.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 100

Expert Comment

by:mlmcc
ID: 6973739
Listening
0
 
LVL 1

Author Comment

by:justinhemphill
ID: 6974765
Is it true that you can only create Extended Stored Procedures using c or c++
0
 
LVL 1

Accepted Solution

by:
falconew earned 200 total points
ID: 6976152
If you are not familiar with C/C++ you can still write a small application using VB to notify your main application. You can use the TCP/IP control or whatever you like to notify your main application.
And then you create a trigger on the table to execute the Extended Store Procedure XP_CMDSHELL 'your small application'. That is a trick.

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question