Logo 
Search:

SQL Server Articles

Submit Article
Home » Articles » SQL Server » System FunctionsRSS Feeds

HOST_ID

Posted By: Sarita Patel     Category: SQL Server     Views: 3822

This article explains about HOST_ID function in sql server with examples.

HOST_ID function returns workstation identification number.


Syntax of HOST_ID Function :

HOST_ID ()

Return type of HOST_ID function is a char(8).




Examples of HOST_ID Function :

Example 1 : Use of HOST_ID function in select clause 

SELECT HOST_ID ()

Output
13830  

Above example returns workstation identification number.
  
Share: 

 
 
 

Didn't find what you were looking for? Find more on HOST_ID Or get search suggestion and latest updates.

Sarita Patel
Sarita Patel author of HOST_ID is from United States.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!