The Non-profit I work for sells registrations to courses as the main business. Only once every 24 hours is a process run that updates the counts, and so occasionally there is overbooking. The reason is that it takes a long time to run, and this was a poor design anyway.
I want to add an add trigger to the Registration table to update the counts for that one conference immediately.
So I need that add trigger to take the conference number and pass it to the stored procedure which will use the parameter to decide which conference to update.
I need to have an idea what the top of the stored procedure looks like related to the incoming parameter. And what the trigger has to do to pass the parameter.
I want to add an add trigger to the Registration table to update the counts for that one conference immediately.
So I need that add trigger to take the conference number and pass it to the stored procedure which will use the parameter to decide which conference to update.
I need to have an idea what the top of the stored procedure looks like related to the incoming parameter. And what the trigger has to do to pass the parameter.