SQL HOST_NAME

The SQL HOST_NAME is one of the System Function, which will return the Workstation name. The syntax behind this is

HOST_NAME()

SQL HOST_NAME Example

The below code snippet will show you the SQL Server Workstation name.

SELECT HOST_NAME() AS 'Workstation Name'
SQL HOST_NAME Example

About Suresh

Suresh is the founder of TutorialGateway and a freelance software developer. He specialized in Designing and Developing Windows and Web applications. The experience he gained in Programming and BI integration, and reporting tools translates into this blog. You can find him on Facebook or Twitter.