Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Monitoring a MySQL database

Featured Replies

Hi all,

Is it possible to wirte some VB.NET code which can detect a change to a database i.e. something being added to a table or deleted?

If it is I would really appricated any pointers on how to go about this :)

Thanks in advanvce

  • 1 month later...

Generally, you wouldn't want to do it that way. Most enterprise-level relational database software supports what are called 'trigger' functions. These are just little bits of code that you build into the database itself and which get fired when something specific happens, such as a row of data getting added to the database or an existing row getting updated.

You can use these trigger functions to do almost anything, but a typical usage would be to carry out some sort of sanity checking on the data being presented. By doing this job in the trigger function code, you end up with a more 'future proof' database, since it doesn't matter where the data is being presented to you from - it could be from a web-based app, from a command line prompt or from some DB management tool, it would all get validated in the same way. This keeps your data integrity rules where they belong, i.e. in the database itself and also means you don't have to re-code the validation every time you want to add a new interface between the data and the front end application.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.