Welcome to Sign in | Help

Re: TIMESTAMP

  •  04-10-2008, 2:46 PM

    Re: TIMESTAMP

    am facut un test pe 1 milion de inregistrari.

    Daca este cu timestamp si cu un update normal (fara conditie) se termina in cam 2 minute
    Daca schimb si pun datetime si pun si un trigger imi ajunge pe la 18 minute.

    Diferenta mare ....
    Triggerul este urmatorul

    CREATE TRIGGER [dbo].[Participant_TimeStamp]
    ON [dbo].[Participant]
    AFTER UPDATE
    AS
    BEGIN
        UPDATE TBL_Participant
        SET UltimaModificare = getdate()
        FROM INSERTED
        WHERE TBL_Participant.ID = INSERTED.ID
       
    END
    GO

    MCP (C Sharp)
    Software Engineer,
    Cluj Napoca
View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems