Get system name using sql or c#.net

By
Advertisement

Introduction:
In my previous article I have explained about  Check textbox is changed or not using javascript C#.net. In this article I am going to explain about how to get the system/computer/local machine name using c#.net and sql server.

Explanation:
To get the system name using c#.net below code is used.

System.Environment.MachineName;


To get the system name using sql server below query is used

Select Host_Name() as Computer_Name

Do you like this article. Then comment here or share with your friends. Or like our Facebook page. Or post your comments below.


0 comments:

Post a Comment

Online Casino