Database roles are contained in a field (roles) found in the sysusers system table.  The field is binary with an algorythm.  Does any one know the alorythm?  Or is there a procedure/function by passing a uid,sid,id that will return the database roles (if any) that are assigned?
 
Thanks,
Jospeh