Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
指定したユーザー名の数値のユーザー ID を返します。
SUSER_ID( [ user-name ] )
user-name 検索しているユーザー ID のユーザー名。
INT
user-name を指定しない場合は、現在のユーザーの ID が返されます。
SQL/2008 Transact-SQL 拡張。
次の文は、GROUPO ユーザーの ID を返します。
SELECT SUSER_ID( 'GROUPO' );