continuations WITH (ROWLOCK, REPEATABLEREAD) WHERE @ActivityID = continuations.ParentActivityID)) SET @HasContinuations = ...

continuations WITH (ROWLOCK, REPEATABLEREAD)
                            WHERE @@ActivityID = continuations.ParentActivityID))
                    SET @@HasContinuations = 1
            END

            -- Trace principale terminée et il n'y a plus de jetons de continuation
            IF ((@@IsComplete = 1) AND (@@HasContinuations IS NULL))
            BEGIN
                -- Ajouter nouvel enregistrement à la table d'instances terminées
                INSERT
English
English (United States)
Deutsch (Deutschland)
German (Germany)
Español (España)
Spanish (Spain)
Français (France)
French (France)
日本語
Japanese
한국어
Korean