<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sybase数据库技术，数据库恢复专家 &#187; sp_remotesql</title>
	<atom:link href="http://www.dbainfo.net/tag/sp_remotesql/feed" rel="self" type="application/rss+xml" />
	<link>https://www.dbainfo.net</link>
	<description>提供Sybase ASE及Sybase SQL Anywhere数据库修复服务，电话：13811580958(微信)，QQ：289965371！We have many years of experience in recovering data from damanged Sybase devices. Contact us by Phone: +86 13811580958 Wechat: 13811580958 Email: 289965371@qq.com</description>
	<lastBuildDate>Sat, 14 Jun 2025 16:28:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>ASE执行sp_remotesql报错：Msg 11224, Level 16, State 2</title>
		<link>https://www.dbainfo.net/sp_remotesql-msg-11224.htm</link>
		<comments>https://www.dbainfo.net/sp_remotesql-msg-11224.htm#comments</comments>
		<pubDate>Tue, 25 Nov 2014 12:27:47 +0000</pubDate>
		<dc:creator>dbainfo</dc:creator>
				<category><![CDATA[Sybase ASE]]></category>
		<category><![CDATA[sp_remotesql]]></category>

		<guid isPermaLink="false">http://www.dbainfo.net/?p=2592</guid>
		<description><![CDATA[通过sp_remotesql在远程服务器上执行存储过程或SQL语句时，报错： Msg 11224, Level 16, State 2: Server &#39;TEST&#39;, Line 1: Cannot open a connection to site &#39;TEST&#39; because it does not have PASSTHRU or RPC capabilities. 当前ASE已经设置动态参数：cis rpc handling=1。 数据库服务器名称为： TEST，查看系统表sysservsers中对应的记录： 1&#62; sp_autoformat &#34;sysservers&#34;,&#34;srvid,srvstatus,srvname,srvnetname,srvclass,srvsecmech,srvcost,srvstatus2&#34;, &#34;where srvid=0&#34; 2&#62; go &#160;srvid srvstatus srvname srvnetname srvclass srvsecmech srvcost srvstatus2 &#160;-----&#160;&#160;&#160; ---------&#160;&#160;&#160;&#160;&#160; -------&#160;&#160;&#160;&#160;&#160; ----------&#160;&#160;&#160;&#160;&#160;&#160; --------&#160;&#160;&#160;&#160;&#160; ----------&#160;&#160;&#160;&#160; -------&#160;&#160;&#160; ---------- [...]]]></description>
			<content:encoded><![CDATA[<p>通过sp_remotesql在远程服务器上执行存储过程或SQL语句时，报错：</p>
<blockquote>
<p>Msg 11224, Level 16, State 2:<br />
		Server &#39;TEST&#39;, Line 1:<br />
		Cannot open a connection to site &#39;TEST&#39; because it does not have PASSTHRU or RPC capabilities.</p>
</blockquote>
<p>
	当前ASE已经设置动态参数：cis rpc handling=1。<br />
	数据库服务器名称为： TEST，查看系统表sysservsers中对应的记录：<br />
	1&gt; sp_autoformat &quot;sysservers&quot;,&quot;srvid,srvstatus,srvname,srvnetname,srvclass,srvsecmech,srvcost,srvstatus2&quot;, &quot;where srvid=0&quot;<br />
	2&gt; go<br />
	&nbsp;srvid srvstatus srvname srvnetname srvclass srvsecmech srvcost srvstatus2<br />
	&nbsp;-----&nbsp;&nbsp;&nbsp; ---------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ----------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ----------&nbsp;&nbsp;&nbsp;&nbsp; -------&nbsp;&nbsp;&nbsp; ----------<br />
	&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TEST&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; TEST&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NULL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><span style="font-size:14px;"><span style="color: rgb(255, 0, 0);">2</span></span></strong></p>
<p>	(1 row affected)<br />
	(return status = 0)</p>
<p>发现另外一台能够成功执行sp_remotesql的ASE服务器上对应srvid=0的srvstatus2的值为0。</p>
<p><span id="more-2592"></span><br />
	<strong>解决方法：</strong><br />
	1、先删除本地服务器：TEST<br />
	sp_dropserver TEST<br />
	go<br />
	2、然后再重新添加一遍本地服务器TEST<br />
	sp_addserver TEST<br />
	go<br />
	&nbsp;</p>
<div style="clear: both; margin: 10px 0pt; border: 1px dashed rgb(153, 153, 153); font-size: 12px; padding: 5px 10px;">
<li>本文链接地址：<a href="https://www.dbainfo.net/sp_remotesql-msg-11224.htm">https://www.dbainfo.net/sp_remotesql-msg-11224.htm</a>；</li>
<li>本文为dbainfo个人原创，请在尊重作者劳动成果的前提下进行转载；</li>
<li>转载务必注明原始出处 : <a href="https://www.dbainfo.net/">Sybase数据库技术，数据库恢复专家</a>；</li>
<li>对《<a href="https://www.dbainfo.net/sp_remotesql-msg-11224.htm">ASE执行sp_remotesql报错：Msg 11224, Level 16, State 2</a>》有何疑问或见解，请在本文下方发表；</li>
<li>对网站还有其他问题或建议，请提交在<a href="https://www.dbainfo.net/messages" target="_blank">留言板</a>，谢谢！</li>
</div>
<h2  class="related_post_title">随机日志</h2><ul class="related_post"><li>2014-12-20 -- <a href="https://www.dbainfo.net/db-engines-ranking_sybase.htm" title="DB-Engines数据库排名 Sybase跌出前10(转)">DB-Engines数据库排名 Sybase跌出前10(转)</a> (0)</li><li>2010-06-24 -- <a href="https://www.dbainfo.net/gbase-8a-analysis-database-made-in-china.htm" title="国内自主研发的首款分析型数据库GBase 8a发布了">国内自主研发的首款分析型数据库GBase 8a发布了</a> (1)</li><li>2011-04-12 -- <a href="https://www.dbainfo.net/sybase-ase-editions-limits.htm" title="Sybase ASE Editions Limits">Sybase ASE Editions Limits</a> (2)</li><li>2010-09-07 -- <a href="https://www.dbainfo.net/sybase-ase-objectname-case-insensitive.htm" title="如何使Sybase ASE中对象名不区分大小写？">如何使Sybase ASE中对象名不区分大小写？</a> (0)</li><li>2015-03-08 -- <a href="https://www.dbainfo.net/sap-asa-cr-number-5.htm" title="SAP SQL Anywhere的所有已知BUG列表（5）">SAP SQL Anywhere的所有已知BUG列表（5）</a> (0)</li><li>2010-02-22 -- <a href="https://www.dbainfo.net/sql-server-installation-problems.htm" title="SQL Server安装出错解决[转]">SQL Server安装出错解决[转]</a> (0)</li><li>2011-08-23 -- <a href="https://www.dbainfo.net/nfs-mount-failed-reason-given-by-server-permission-denied.htm" title="NFS mount failed, reason given by server: Permission denied">NFS mount failed, reason given by server: Permission denied</a> (5)</li><li>2009-11-18 -- <a href="https://www.dbainfo.net/syslogs-operation-types.htm" title="Sybase系统表syslogs中OP代表的类型">Sybase系统表syslogs中OP代表的类型</a> (0)</li><li>2010-02-05 -- <a href="https://www.dbainfo.net/start-ase-engine-by-isql-command.htm" title="通过ASE本身的命令重新启动ASE[转]">通过ASE本身的命令重新启动ASE[转]</a> (0)</li><li>2010-04-09 -- <a href="https://www.dbainfo.net/sybase1503-cross-platform-recovery.htm" title="Sybase15.0.3跨平台恢复过程">Sybase15.0.3跨平台恢复过程</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>https://www.dbainfo.net/sp_remotesql-msg-11224.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
