服务器A有库x 它里边的存储过程要掉要服务器B里Y库的 名为sss的存储过程(参数N个)

解决方案 »

  1.   

    exec [链接服务器].库名.dbo.存储过程名
      

  2.   


     Server 'myserver' is not configured for RPCProblem: On a Microsoft SQL Server 2005 installation with a linked server configured to "myserver" (which happens to be 2000), execution of a remote stored procedure (EXEC myserver.mydatabase.dbo.mysproc) fails with error:    Msg 7411, Level 16, State 1, Line 1
        Server 'psp6new' is not configured for RPC. Solution: Problem is most likely that RPC is not configured for your linked server. That is not a default option, after all. You can see what settings are configured with exec sp_helpserver.If 'rpc,rpc out' is not in your results, then the the linked server isn't configured for RPC. To do so:exec sp_serveroption @server='myserver', @optname='rpc', @optvalue='true'
    exec sp_serveroption @server='myserver', @optname='rpc out', @optvalue='true' 
      

  3.   

    开启rpc:
    在链接服务器的属性、Server Options页面上,RPC和RPC OUT勾选。 
      

  4.   


    这个链接服务器 应该怎么写 例如服务器B是192.168.1.1 帐号:sa 密码:sa 数据是Y 存储过程是sss(参数若干)
      

  5.   


    参见roy_88版主整理贴:
    http://topic.csdn.net/u/20080612/22/bb2dfa83-1cf3-4a0b-9bd4-5a39e6193556.html