Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Question about RPC for linked servers.


Question about RPC for linked servers.

Author
Message
tim.cloud
tim.cloud
Valued Member
Valued Member (54 reputation)Valued Member (54 reputation)Valued Member (54 reputation)Valued Member (54 reputation)Valued Member (54 reputation)Valued Member (54 reputation)Valued Member (54 reputation)Valued Member (54 reputation)

Group: General Forum Members
Points: 54 Visits: 349
OK, so I am trying to figure out what the purpose of the RPC option for sp_serveroption is for.
I understand what RPC is, but I have a deeper question.
When sp_serveroption rpc is set to false, I can still add a linked server, turn it on there (in the linked server properties) and get it to work.
Why is that?

1.) How can I disable RPC in such a way that a server does not allow it even when added as a linked server?
2.) Why can RPC be disabled at the sp_serveroption level and still work through the linked server properties?
3.) What is the best way to tell if RPC is enabled at the server level, and ensure it's disabled?

Any help is appreciated.
Mani Dev
Mani Dev
Old Hand
Old Hand (395 reputation)Old Hand (395 reputation)Old Hand (395 reputation)Old Hand (395 reputation)Old Hand (395 reputation)Old Hand (395 reputation)Old Hand (395 reputation)Old Hand (395 reputation)

Group: General Forum Members
Points: 395 Visits: 700
RPC Needs to be enabled in order to call a stored procedure which is on linked server database.

exec sp_serveroption @server='linked_server_name', @optname='rpc', @optvalue='false'
exec sp_serveroption @server='linked_server_name', @optname='rpc out', @optvalue='false'

EXEC [linked_server_name].MASTER.SYS.SP_HELPDB ‘linked_server_name’

Hope this helps you..
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search