When setting up a linked server in SQL Server (we're on 2005), you can set two server options:
- Rpc
- Rpc Out
Looking at the MSDN article, all it states is:
RPC - Enables RPC from the specified server.
RPC Out - Enables RPC to the specified server.
My question is, why would I need to set these options? What can I do / not do by enabling Rpc on a linked server? Does setting these options to true have any drawbacks?
EDIT:
But to execute the remote stored procedure, you'd need the "RPC Out" setting enabled. When would you ever need the "RPC" setting enabled?
An example of an RPC in this context is a stored procedure. To link another server and run an sp on it you'll need to set the RPC Out option.
-Anders
I know this is an old question but it returns as one of the first links on a search. I am just adding to @chankster answer to give a bit more detail and when to use it. I don't have enough rep. to post it as a comment yet. Same answer I gave on https://dba.stackexchange.com/a/107042/70662. According to a msdn blog the RPC vs RPC Out on a SQL Server linked-server is this:
Which really should say RPC Out should be enabled.
I know this is old, but I came across this information below. RPC really doesn't do anything. You just need RPC OUT enabled.
external link to the information I found