sql server - Trigger to update a date field on one table when another table is updated - Database Administrators Stack Exchange
I changed your provided example, ran the script and it was successful, however, what it did was to update the ZLastSale date on all Customers with todays date. It runs and up dates the custom field, however when a new transaction is entered into the database the custom field is not updated which is what I want
To ease data entry, let's say that administrative users can create "ticket templates," which pre-define the values for a number of ticket data points that are stored in a table named TicketTemplates. Applying a template to an existing ticket would require that the existing record in the Tickets table have its non-set data points assigned to the corresponding default values of the selected template
No comments:
Post a Comment