Returns 1 if the specified ID is a valid user or alias in at least one database on this Adaptive Server.
valid_user(server_user_id)
is a server user ID. Server user IDs are stored in the suid column of syslogins.
select valid_user(4)
--------------- 1
valid_user, a system function, returns 1 if the specified ID is a valid user or alias in at least one database on this Adaptive Server.
For general information about system functions, see “System functions”.
ANSI SQL – Compliance level: Transact-SQL extension.
You must be a System Administrator or a System Security Officer to use this function on a server_user_id other than your own.
System procedures sp_addlogin, sp_adduser