C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Get Host Name And User Name In SQL Server
WhatsApp
Pankaj Kumar Choudhary
9y
4.6
k
0
1
25
Blog
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
People also reading
Membership not found