Question : suser

what is the diff between suser and user.

when i run
select Name, SUSER_name(principal_id) What_is_this, USER_name(principal_id) Owner from sys.schemas I get the below.
Attachments:
 
suser
suser
 

Answer : suser

SUSER_NAME => login name (server level)
http://msdn.microsoft.com/en-us/library/ms187934.aspx
USER_NAME => user name (database level)
http://msdn.microsoft.com/en-us/library/ms188014.aspx

Random Solutions  
 
programming4us programming4us