Access to the local computer name

the System.Net the using;
Dns.GetHostName () // Get the local computer name
string sql = "select GETDATE () "; Get server time

Guess you like

Origin www.cnblogs.com/zhujie-com/p/12147922.html