• As this mechanismn is transaction or session relevant,

    you cannot use it over two processes.

    Just a hint (was mssing in the story): You can check these locks with

    select APPLOCK_MODE('dbo','MyMutex','Session')

    select APPLOCK_TEST('dbo','MyMutex','Exclusive','Session') (using your parameters of course)

    kr/Werner