<?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>2010-03-15 -- <a href="https://www.dbainfo.net/unix-tar-unzip-two-problems-and-dealing.htm" title="关于unix下tar解压时的两个错误问题及解决方法">关于unix下tar解压时的两个错误问题及解决方法</a> (0)</li><li>2010-08-15 -- <a href="https://www.dbainfo.net/disable-windows7-program-compliable-assitant.htm" title="关闭win7的程序兼容性助手">关闭win7的程序兼容性助手</a> (0)</li><li>2010-12-22 -- <a href="https://www.dbainfo.net/cross-platform-datafile-linux-windows.htm" title="跨平台数据库的数据设备文件迁移linux > windows">跨平台数据库的数据设备文件迁移linux > windows</a> (0)</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>2010-12-15 -- <a href="https://www.dbainfo.net/oracle10g-linux5_4-installer-libxp.htm" title="Linux 5下安装oracle开始遇见的错误 缺少包libXp-1.0.0-8.i386.rpm">Linux 5下安装oracle开始遇见的错误 缺少包libXp-1.0.0-8.i386.rpm</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-11-11 -- <a href="https://www.dbainfo.net/first-time-to-use-job-scheduler-reindex-js_keys.htm" title="首次使用job scheduler的时候需要重建一个表的索引">首次使用job scheduler的时候需要重建一个表的索引</a> (0)</li><li>2010-06-01 -- <a href="https://www.dbainfo.net/sybase-ase-get-object-ddl-with-ddlgen.htm" title="用DDLGEN从ASE数据库中提取对象的定义语法">用DDLGEN从ASE数据库中提取对象的定义语法</a> (0)</li><li>2011-06-02 -- <a href="https://www.dbainfo.net/aix-date-change-time-zone-to-get-date.htm" title="aix系统可以用改变时区的方法获取前后N天的日期">aix系统可以用改变时区的方法获取前后N天的日期</a> (0)</li><li>2013-11-19 -- <a href="https://www.dbainfo.net/showplan_html_format.htm" title="以HTML格式显示ASE查询计划">以HTML格式显示ASE查询计划</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>
