• The problem is that the join in the query is wrong where it joins on the xtype column of systypes it should use xusertype instead.

    [font="Courier New"]Did you try the query before you say there was a wrong in the join[/font]