The DB resides in SQL Server 2008 ...
I have a db that resides in a different country, i want the tables DateCreated and DateUpdated to have Date and Time of e.g. Canada/ON/Toronto time zone instead of the time zone of US where db is located.
DateCreated has a default value GetDate() and DateUpdated has the following trigger:
CREATE TRIGGER trigger_name ON table_name
AFTER UPDATE
AS
BEGIN
UPDATE table_name
SET dateModified = GETDATE()
FROM table_name cm JOIN Inserted i
ON cm.companyid = i.companyid;
END
GO