• The idea is very nice, but I can´t make this work.

    The problem is that value() does not work inside logon triggers. In fact, it seems xqueries don´t work inside logon triggers.

    I don´t have any trouble using them inside DDL triggers.

    What I can do in a logon trigger is inserting the result of EVENTDATA() into a xml column. That is not what I need.

    If anyone has an explanation or a solution for this, I would appreciate it very much.