Hi,
should'nt @USERID be the same as SidToName(@SID)?
_________________________
Jens Kalski