Returns the name of the current user.
user
select user
------ dbo
user, a system function, returns the user’s name.
If the sa_role is active, you are automatically the Database Owner in any database you are using. Inside a database, the user name of the Database Owner is always “dbo”.
For general information about system functions, see “System functions”.
ANSI SQL – Compliance level: Transact-SQL extension.
Any user can execute user.
Functions user_name
Copyright © 2005. Sybase Inc. All rights reserved. |