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'
|SQL Server: The performance goes down, but re-build statistics boost up performance||32||53|
|T-SQL: Only one expression can be specified in the select list when the subquery is not introduced with EXISTS||10||75|
|What is format f12.8 for a CSV file||6||40|
|How to identify differences between 2 backup files?||7||30|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
21 Experts available now in Live!