Proceed with Caution: Using SQL Triggers with Dynamics GP: Dynamics GP Land walks us through an actual example in which they chose to use triggers: "SQL database triggers are an interesting, powerful, ...
Database administrators can employ various techniques to audit the use of SQL Server databases for security and regulatory compliance purposes. One of the most common methods is creating SQL Server ...
CREATE TRIGGER tr_person_setPersonID ON person AFTER INSERT AS DECLARE @newid int SET @newid = (select max(P.person_id) + 1 FROM person P JOIN inserted i ON i.study_id = P.study_id WHERE p.study_id = ...