SqlFunctions.HostName Method ()

 

Returns the workstation name.

Namespace:   System.Data.Entity.SqlServer
Assembly:  EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)

[DbFunctionAttribute("SqlServer", "HOST_NAME")]
public static string HostName()

Return Value

Type: System.String

The name of the workstation.