Logo 
Search:

SQL Server Articles

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

@@REMSERVER - REMSERVER Function

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

This article explains about @@REMSERVER function in sql server with examples.

@@REMSERVER function returns name of the remote sql server database server.  


Syntax of @@REMSERVER Function :

@@REMSERVER

Return type of @@REMSERVER function is nvarchar(256).



Examples of @@REMSERVER Function :

Example 1 : Use of @@REMSERVER function in select clause

SELECT @@REMSERVER

Above example returns the name of the remote server on which it is executed.
  
Share: 

 
 

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

Sarita Patel
Sarita Patel author of @@REMSERVER - REMSERVER Function is from United States.
 
View All Articles

Related Articles and Code:


 
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!