' Returns Name of the Computer
Function Get_Comp_Name() As String
Return My.Computer.Name.ToString
End Function
The VBA/Visual Basic function to do the same is :
http://vbadud.blogspot.com/2007/05/get-computer-name.html
The SQL Statement to get the computer name is :
http://sqldud.blogspot.com/2007/04/get-computer-name-from-sql-query.html
this return server name i need client computer name
ReplyDeleteRetrieve Client Machine Name
ReplyDeleteThe following might help
Dim ClientMachineEntry As System.Net.IPHostEntry
ClientMachineEntry = System.Net.Dns.GetHostByAddress(Request.ServerVariables.Item("REMOTE_HOST"))
messagebox.show(ClientMachineEntry.HostName)