SunQuest
           Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old March 13th, 2008, 02:59 AM
New_2_DB New_2_DB is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 20 New_2_DB User rank is Private First Class (20 - 50 Reputation Level)New_2_DB User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 5 h 33 m 59 sec
Reputation Power: 0
Table Monitor

hi all...
I want to develop a VB6 module that will alert the user whenever
insert/Update happed to a table(s) ( by other user too)

I am using fb2.0.3. & ODBC

How can i able to do this with min. resource usage

Thanks in advance.

Reply With Quote
  #2  
Old March 13th, 2008, 05:40 PM
jwbartle jwbartle is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 19 jwbartle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 12 m 20 sec
Reputation Power: 0
Quote:
Originally Posted by New_2_DB
hi all...
I want to develop a VB6 module that will alert the user whenever
insert/Update happed to a table(s) ( by other user too)

I am using fb2.0.3. & ODBC

How can i able to do this with min. resource usage

Thanks in advance.


I've got no idea if there is something within Firebird itself that can monitor such things. If there isn't, that'd mean you'd have to manage it all yourself.

If that is so, one idea is to put update and insert triggers on all of your tables, so whenever one of those actions is performed, it'll save the tablename and timestamp to a new table set up for just that. Then you can query it on a regular basis to see if there are any records in this "meta" table that have a timestamp greater than the time you last checked.

Of course this would require making constant calls to the database, which seems horribly inefficient.

Another idea might be putting in insert and update triggers which make a call to a UDF (if such a thing is possible). This UDF could be tied into other parts of your system so it could trigger the sending of messages to other machines.

That's just my 2 cents.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Table Monitor


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway