Using below query you can get the host name and logged user name.
Syntax
- SELECT HOST_NAME() AS Host_Name, SUSER_NAME() [User_Name]
Example

Using below query you can get the host name and logged user name.
Syntax

Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
SubashPosted Sep 7, 2016, 8:16 AM
Good