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.
This function is provided for compatibility with other vendors. You can also use the USER_ID function, which does exactly
the same thing.
The following statement returns the ID for the GROUPO user.
SELECT SUSER_ID( 'GROUPO' );