@@REMSERVER (Transact-SQL)

This feature will be removed in the next version of Microsoft SQL Server. Do not use this feature in new development work, and modify applications that currently use this feature as soon as possible. Use linked servers and linked server stored procedures instead.

Returns the name of the remote SQL Server database server as it appears in the login record.