This function is used to retrieve the fully qualified Windows user name for machines running Windows XP SP2 and above.
Example:
SELECT xpusername()