Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
Returns the numeric user ID for the specified user name.
SUSER_ID( [ user-name ] )
The user name for the user ID you are searching for.
If you do not specify user-name, the ID of the current user is returned.
The following statement returns the ID for the GROUPO user.
SELECT SUSER_ID( 'GROUPO' );