Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention. Check out this how-to article for more information.
CREATE TRIGGER tr_tableB_calltime ON dbo.tableB AFTER INSERT AS UPDATE cd SET calltime = DATEADD(HH,2,GETDATE()) FROM dbo.tableB cd INNER JOIN inserted i ON cd.tableBid = i.tableBid JOIN dbo.tableA c ON cd.eventID = c.eventID WHERE cd.calltime IS NULL AND c.status = 'DDDD'
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.