<?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>SQL Server 已封鎖元件 &#8211; 21點情報網</title>
	<atom:link href="https://ailog.tw/lifelog/tag/sql-server-%E5%B7%B2%E5%B0%81%E9%8E%96%E5%85%83%E4%BB%B6/feed/" rel="self" type="application/rss+xml" />
	<link>https://ailog.tw/lifelog</link>
	<description></description>
	<lastBuildDate>Mon, 09 Dec 2019 05:27:19 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>SQL Server 已封鎖元件 &#8216;Ad Hoc Distributed Queries&#8217; 的 STATEMENT &#8216;OpenRowset/OpenDatasource&#8217; 之存取&#8230;..警告訊息</title>
		<link>https://ailog.tw/lifelog/2019/12/09/sql-ad-hoc-distributed/</link>
		
		<dc:creator><![CDATA[blackjack]]></dc:creator>
		<pubDate>Mon, 09 Dec 2019 05:26:43 +0000</pubDate>
				<category><![CDATA[3C資訊]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008R2]]></category>
		<category><![CDATA[Ad Hoc Distributed Queries]]></category>
		<category><![CDATA[AdHocRemoteQueriesEnable]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server 已封鎖元件]]></category>
		<category><![CDATA[XPcmdShellEnabled]]></category>
		<guid isPermaLink="false">https://ailog.tw/lifelog/?p=1926</guid>

					<description><![CDATA[小編在一個將SQL 2000 Server替換成SQL 2008R2 Express的案例上，遇到了「SQL  &#8230; <p class="link-more"><a href="https://ailog.tw/lifelog/2019/12/09/sql-ad-hoc-distributed/" class="more-link">閱讀全文<span class="screen-reader-text">〈SQL Server 已封鎖元件 &#8216;Ad Hoc Distributed Queries&#8217; 的 STATEMENT &#8216;OpenRowset/OpenDatasource&#8217; 之存取&#8230;..警告訊息〉</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>小編在一個將SQL 2000 Server替換成SQL 2008R2 Express的案例上，遇到了「SQL Server 已封鎖元件 &#8216;Ad Hoc Distributed Queries&#8217; 的 STATEMENT &#8216;OpenRowset/OpenDatasource&#8217; 之存取<span id="more-1926"></span>，因為此元件已經由此伺服器的安全性組態關閉。系統管理員可以使用 sp_configure 來啟用 &#8216;Ad Hoc Distributed Queries&#8217; 的使用。如需有關啟用 &#8216;Ad Hoc Distributed Queries&#8217; 的詳細資訊，請參閱《SQL Server 線上叢書》中的＜介面區組態＞(Surface Area Configuration)。」</p>
<p>這個發生的原因是SQL 2008R2把Facet的介面區組態中的「AdHocRemoteQueriesEnable」及「XPcmdShellEnabled」改為預設關閉了，因此只要依據狀況啟動這兩個功能即可排除。</p>
<p>透過SQL Server Management Studio連線資料庫後，在「物件總管」最上方點選滑鼠右鍵，接著選擇「Facet(A)」<img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-1928" src="https://ailog.tw/lifelog/wp-content/uploads/2019/12/sql2k801.png" alt="" width="592" height="444" srcset="https://ailog.tw/lifelog/wp-content/uploads/2019/12/sql2k801.png 592w, https://ailog.tw/lifelog/wp-content/uploads/2019/12/sql2k801-300x225.png 300w" sizes="(max-width: 592px) 100vw, 592px" /></p>
<p>Facet(F)選擇「介面區組態」，接著在Facet屬性(P)列表中將「AdHocRemoteQueriesEnable」及「XPcmdShellEnabled」改為「True」<img decoding="async" class="alignnone wp-image-1929 size-full" src="https://ailog.tw/lifelog/wp-content/uploads/2019/12/sql2k802.png" alt="" width="722" height="346" srcset="https://ailog.tw/lifelog/wp-content/uploads/2019/12/sql2k802.png 722w, https://ailog.tw/lifelog/wp-content/uploads/2019/12/sql2k802-300x144.png 300w" sizes="(max-width: 722px) 100vw, 722px" /></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
