Also you can create linked server object for SQL Server and other databases in the same way.
In this article I describe step to query on linked server directly through RPC without using OPENQUERY.
Suppose I have a linked server name: PROD with another SQL Server.