Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trapping a SQL Event in VB

Status
Not open for further replies.

Nikoli

Programmer
Aug 12, 2009
3
0
0
US
I need to trigger an event whenever a sql database has a new record written to it.

Is there a simple method to do this? Running a loop that constantly checks the database isn't an option.


Thanks.

 
You can create an insert trigger on the table. Which means that when a new record is added to the table in the sql database, the trigger attached to that table will be fired. In the trigger you can then do whatever you want.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top