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
Below code snippet will show you the SQL Server Workstation name.
SELECT HOST_NAME() AS 'Workstation Name'
OUTPUT
Thank You for Visiting Our Blog