?
Solved

Get all changes?

Posted on 2001-08-06
4
Medium Priority
?
138 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 400 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…
Suggested Courses
Course of the Month14 days, 12 hours left to enroll

771 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