<?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>CJH的儲思盆 - 技術.管理.思考 &#187; 合併式複寫</title>
	<atom:link href="http://mind.cjh.cc/post-tag/%e5%90%88%e4%bd%b5%e5%bc%8f%e8%a4%87%e5%af%ab/feed" rel="self" type="application/rss+xml" />
	<link>http://mind.cjh.cc</link>
	<description>小 工 程 師 職 場 打 滾 記 事</description>
	<lastBuildDate>Sun, 19 Apr 2009 09:38:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>SQL SERVER 2005 交易式複寫小研究</title>
		<link>http://mind.cjh.cc/post-68.html</link>
		<comments>http://mind.cjh.cc/post-68.html#comments</comments>
		<pubDate>Sun, 19 Apr 2009 09:38:48 +0000</pubDate>
		<dc:creator>CJH</dc:creator>
				<category><![CDATA[程設]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[合併式複寫]]></category>

		<guid isPermaLink="false">http://mind.cjh.cc/?p=68</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>版本:SQL SERVER 2005-sp3-4035</p>
<p>在「已發布」的複寫資料表內，直接使用右鍵-&gt;設計(開啟GUI介面)，改完之後直接儲存</p>
<ol>
<li>新增欄位(接在rowguid資料行之後)：可成功儲存，並會自動發佈</li>
<li>刪除欄位：可成功儲存，並會自動發佈</li>
<li>移動欄位順序：無法儲存，失敗</li>
<li>bug：刪除欄位後，會把「自動計算」的資料行設為未發布複寫，但是新增欄位的動作不會有此狀況</li>
</ol>
<p>[已發布]的函數，右鍵-&gt;修改</p>
<ol>
<li>修改內容：如果此函數沒有被其他資料表使用(計算資料行)，則可成功套用</li>
<li>修改內容(已被資料表使用)：無法執行，會有錯誤訊息</li>
<li>刪除：會告知已被用於複寫，無法刪除</li>
</ol>
<p>發行項屬性</p>
<ol>
<li>新增/取消勾選項目：需要重新建立快照集，但不用重新初始化</li>
<li>取消勾選「已發布」的資料表內的「欄位」：需要重新建立快照集+重新初始化</li>
</ol>
<p>總結：</p>
<ol>
<li>盡量不要在資料表內使用「有參考使用者自訂函數」的計算資料行，很容易造成複寫同步失敗</li>
<li>已發布項目，直接用GUI介面修改即可，會自動套用變更(但注意如果改資料表，欄位前後順序不要動)</li>
<li>注意前面提到的刪除欄位會造成的bug</li>
<li>新增發布項目，需要重新建立快照集，但不用重新初始化</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://mind.cjh.cc/post-68.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL SERVER 2005 合併式複寫 移除後資料庫仍標示為複寫中</title>
		<link>http://mind.cjh.cc/post-13.html</link>
		<comments>http://mind.cjh.cc/post-13.html#comments</comments>
		<pubDate>Mon, 10 Sep 2007 02:46:59 +0000</pubDate>
		<dc:creator>CJH</dc:creator>
				<category><![CDATA[網路]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[合併式複寫]]></category>

		<guid isPermaLink="false">http://mind.cjh.cc/?p=13</guid>
		<description><![CDATA[解決方式：參照sp_removedbreplication說明
]]></description>
			<content:encoded><![CDATA[<p>解決方式：參照<a href="http://technet.microsoft.com/zh-tw/library/ms188734.aspx" target="_blank">sp_removedbreplication說明</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mind.cjh.cc/post-13.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
