Solved

Get all changes?

Posted on 2001-08-06
4
134 Views
Last Modified: 2010-05-02
I have a db on my SQL 7.0 I want to write an application in VB 6 which will monitor a table. I'd like
to see all changes upon that table (even those made by others) in real time. How can I instruct the
SQL server to PUSH those changes to my form? Could this be done?

I appreciate any toughts.
0
Comment
Question by:cuniros
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 100 total points
ID: 6357422
You could write a trigger which logs the changes to a seperate table and poll this table on a frequent basis. Doing it realtime would be a bit of an interesting problem. I would imagine that you could write an extended stored procedure that would be called by your trigger to access an activex exe on your machine which would be able to fire back the event to your application but this is a fairly complex task. I would doubt that you really need this in real time, a simple polling of the table written to by the trigger once every 30 seconds or every minute would probably be sufficient. If you needed better resolution you could make this polling period flexible so that you can get frequent updates for a period and then slow it back down. Obviously network performance is likely to suffer if you are polling this table on a high frequency.
0
 

Author Comment

by:cuniros
ID: 6357462
Tim,

The table will be updated by other apps and I want to monitor all changes as they happen through this app I want to write, in real time.

Thank you.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7198511
Hi cuniros,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept TimCottee's comment(s) as an answer.

cuniros, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 5

Expert Comment

by:Netminder
ID: 7213254
Per recommendation, force-accepted.

Netminder
CS Moderator
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 While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

749 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