<?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>2015-03-08 -- <a href="https://www.dbainfo.net/sap-asa-cr-number-3.htm" title="SAP SQL Anywhere的所有已知BUG列表（3）">SAP SQL Anywhere的所有已知BUG列表（3）</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>2011-10-14 -- <a href="https://www.dbainfo.net/install-centos-6-0-from-pxe-hangggg.htm" title="解决通过网络(PXE)安装CentOS6.0 x86_64时无法初始化硬件的问题">解决通过网络(PXE)安装CentOS6.0 x86_64时无法初始化硬件的问题</a> (0)</li><li>2010-07-27 -- <a href="https://www.dbainfo.net/compute-oracle-row-size.htm" title="Oracle如何精确计算row的大小">Oracle如何精确计算row的大小</a> (0)</li><li>2010-07-02 -- <a href="https://www.dbainfo.net/sybase-central-proxy-database-display-problem.htm" title="Sybase Central中代理数据库分类出错的问题解决">Sybase Central中代理数据库分类出错的问题解决</a> (0)</li><li>2013-04-02 -- <a href="https://www.dbainfo.net/ase-3rt-party-tools-illegal-chinese-words.htm" title="使用第三方工具访问ASE表时汉字乱码问题的解决方法">使用第三方工具访问ASE表时汉字乱码问题的解决方法</a> (1)</li><li>2010-09-21 -- <a href="https://www.dbainfo.net/sybase-ase-15_0_2-function-isdate-isnumeric.htm" title="Sybase ASE 判断字符串是否为日期和数字的两个函数">Sybase ASE 判断字符串是否为日期和数字的两个函数</a> (0)</li><li>2015-03-08 -- <a href="https://www.dbainfo.net/sap-asa-cr-number-8.htm" title="SAP SQL Anywhere的所有已知BUG列表（8）">SAP SQL Anywhere的所有已知BUG列表（8）</a> (0)</li><li>2010-09-08 -- <a href="https://www.dbainfo.net/sybase-iq12_5-installation-guide.htm" title="SYBASE IQ12.5安装指南">SYBASE IQ12.5安装指南</a> (0)</li><li>2010-05-18 -- <a href="https://www.dbainfo.net/sqlserver2005-get-datafile-located-disk-freespace.htm" title="得到SQLSERVER 2005 数据库的当前数据库中的数据文件所在磁盘的剩余空间">得到SQLSERVER 2005 数据库的当前数据库中的数据文件所在磁盘的剩余空间</a> (1)</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>
