Below is the script to find the respective sid of an server proccess id.

SEE ALSOGet ospid from sid