<?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>2012-01-17 -- <a href="https://www.dbainfo.net/sqlserver-2005-failover-cluster1.htm" title="在VM Server中配置SQL Server 2005故障转移群集(1)—创建虚拟机">在VM Server中配置SQL Server 2005故障转移群集(1)—创建虚拟机</a> (0)</li><li>2010-12-15 -- <a href="https://www.dbainfo.net/windows-cmd-bat-extract-date-time-format.htm" title="windows cmd下的date，time格式的提取">windows cmd下的date，time格式的提取</a> (0)</li><li>2012-03-29 -- <a href="https://www.dbainfo.net/sybase-ase-null-is-null.htm" title="Sybase ASE 中null is null的处理结果是什么？">Sybase ASE 中null is null的处理结果是什么？</a> (0)</li><li>2010-11-13 -- <a href="https://www.dbainfo.net/windows-mobile-sybase-anywhere1.htm" title="[转]Windows Mobile 上使用Sybase Anywhere(1)">[转]Windows Mobile 上使用Sybase Anywhere(1)</a> (0)</li><li>2011-05-18 -- <a href="https://www.dbainfo.net/sap-erp-run-at-sybase-ase.htm" title="SAP ERP系统能够跑在ASE系统上了">SAP ERP系统能够跑在ASE系统上了</a> (0)</li><li>2015-08-03 -- <a href="https://www.dbainfo.net/sap-ase-manual-index.htm" title="SAP ASE 15.7 ESD#2中文版官方手册目录列表（1）">SAP ASE 15.7 ESD#2中文版官方手册目录列表（1）</a> (0)</li><li>2010-12-19 -- <a href="https://www.dbainfo.net/imgrate-ase-database-referencial-table-scripts-execute-twice.htm" title="迁移ASE数据库的表之间存在引用时脚本执行情况">迁移ASE数据库的表之间存在引用时脚本执行情况</a> (0)</li><li>2010-08-05 -- <a href="https://www.dbainfo.net/sqlserver2000-torn_page_detection-error-823.htm" title="sql server 2000 torn_page_detection error (error 823)">sql server 2000 torn_page_detection error (error 823)</a> (0)</li><li>2010-03-19 -- <a href="https://www.dbainfo.net/solaris-system-version-long-word.htm" title="查看solaris系统的版本和位数">查看solaris系统的版本和位数</a> (1)</li><li>2010-08-17 -- <a href="https://www.dbainfo.net/sql-server-io-requests-taking-longer-than-15-seconds-to-complete-on-file.htm" title="[SQL SERVER] I/O requests taking longer than 15 seconds to complete on file">[SQL SERVER] I/O requests taking longer than 15 seconds to complete on file</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>
