<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQL's Corner</title><link>http://blogs.technet.com/b/claudia_silva/</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 5.6.583.19849 (Build: 5.6.583.19849)</generator><item><title>Replication: Stream_Blob_Columns enabled by default when Filestream is enabled</title><link>http://blogs.technet.com/b/claudia_silva/archive/2012/01/10/replication-stream-blob-columns-enabled-by-default-when-filestream-is-enabled.aspx</link><pubDate>Tue, 10 Jan 2012 10:11:43 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3474691</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3474691</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2012/01/10/replication-stream-blob-columns-enabled-by-default-when-filestream-is-enabled.aspx#comments</comments><description>&lt;p&gt;&lt;span style="font-size: small;"&gt;&lt;a href="http://support.microsoft.com/kb/2647118"&gt;http://support.microsoft.com/kb/2647118&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3474691" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Peformance/">Peformance</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Merge/">Merge</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication/">Replication</category></item><item><title>REPLICATION: Oracle publication triggers sends data for non-published columns when replicating with Microsoft SQL Server</title><link>http://blogs.technet.com/b/claudia_silva/archive/2012/01/10/replication-oracle-publication-triggers-sends-data-for-non-published-columns-when-replicating-with-microsoft-sql-server.aspx</link><pubDate>Tue, 10 Jan 2012 09:20:18 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3474687</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3474687</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2012/01/10/replication-oracle-publication-triggers-sends-data-for-non-published-columns-when-replicating-with-microsoft-sql-server.aspx#comments</comments><description>&lt;p&gt;&lt;span style="font-size: small;"&gt;&lt;a href="http://support.microsoft.com/kb/2310152"&gt;http://support.microsoft.com/kb/2310152&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3474687" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication+Errors/">Replication Errors</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Transactional/">Transactional</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication/">Replication</category></item><item><title>REPLICATION: Load Test Platform for Merge Replication </title><link>http://blogs.technet.com/b/claudia_silva/archive/2011/12/15/replication-load-test-platform-for-merge-replication.aspx</link><pubDate>Thu, 15 Dec 2011 10:42:29 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3471020</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3471020</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2011/12/15/replication-load-test-platform-for-merge-replication.aspx#comments</comments><description>&lt;p&gt;&lt;b&gt;Zen4Sync&lt;/b&gt; is all about providing an &lt;b&gt;Orchestration and Load Test platform&lt;/b&gt; able to validate any &lt;b&gt;SQL Server Merge Replication&lt;/b&gt; based Architecture.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://zen4sync.codeplex.com/"&gt;http://zen4sync.codeplex.com/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3471020" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Merge/">Merge</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication/">Replication</category></item><item><title>Replication: Watch out for STREAM_BLOB_COLUMNS when setting up replication on your SQL 2008 + server</title><link>http://blogs.technet.com/b/claudia_silva/archive/2011/10/31/replication-watch-out-for-stream-blob-columns-when-setting-up-replication-on-your-sql-2008-server.aspx</link><pubDate>Mon, 31 Oct 2011 10:19:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3462326</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3462326</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2011/10/31/replication-watch-out-for-stream-blob-columns-when-setting-up-replication-on-your-sql-2008-server.aspx#comments</comments><description>&lt;p&gt;&lt;span style="font-size: small;"&gt;When setting up merge replication on your SQL 2008 + server, please be careful with the parameter STREAM_BLOB_COLUMN.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: small;"&gt;By default, this option is set to FALSE, as explained here in BOL:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #800000; font-size: small;"&gt;&lt;strong&gt;&amp;nbsp;[ @stream_blob_columns= ] 'stream_blob_columns'&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #800000; font-size: small;"&gt;Specifies that a data stream optimization be used when replicating binary large object columns. stream_blob_columns is nvarchar(5), with a default of FALSE. true means that the optimization will be attempted. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: small;"&gt;However one should be careful with the NOTE information (see below):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: small;"&gt;When filestream is enabled - @schema_option = 0x000000010C034FD1 (&lt;span style="color: #800000;"&gt;100000000 --&amp;gt; Use this option to replicate the FILESTREAM attribute if it is specified on varbinary(max) columns. Do not specify this option if you are replicating tables to SQL Server 2005 Subscribers. Replicating tables that have FILESTREAM columns to SQL Server 2000 Subscribers is not supported, regardless of how this schema option is set. See related option 0x800000000&lt;/span&gt;) - the stream_blob_column option is also enabled and a warning is generated:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: small;"&gt;&lt;strong&gt;&lt;span style="color: #ff0000;"&gt;Warning: To allow replication of FILESTREAM data to perform optimally and reduce memory utilization, the 'stream_blob_columns' property has been set to 'true'.&amp;nbsp; To force FILESTREAM table articles to not use blob streaming, use sp_changemergearticle to set 'stream_blob_columns' to 'false'.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: small;"&gt;Should this option NOT be necessary (you will not be transfering data greater than 16K) than you should disable the option in order to avoid possible performance issues.&lt;/span&gt;&lt;/p&gt;
&lt;div class="alert"&gt;
&lt;table style="width: 658px; height: 101px;"&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;th&gt;&lt;span style="font-size: small;"&gt;&lt;!--src=[../icons/alert_caution.gif]--&gt;&lt;img alt="Important note" src="http://i.msdn.microsoft.com/ms174329.alert_caution(en-us,SQL.105).gif" /&gt;&lt;strong&gt;Important&lt;/strong&gt;&lt;/span&gt;&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;span style="font-size: small;"&gt;Enabling this memory optimization may reduce the performance of the Merge Agent during &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: small;"&gt;synchronization. &lt;/span&gt;&lt;span style="font-size: small;"&gt;This option should only be used when replicating columns that contain &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: small;"&gt;megabytes of data.&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;div class="alert"&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;th&gt;&lt;span style="font-size: small;"&gt;&lt;!--src=[../icons/alert_note.gif]--&gt;&lt;img alt="Note" src="http://i.msdn.microsoft.com/ms174329.alert_note(en-us,SQL.105).gif" /&gt;&lt;strong&gt;Note&lt;/strong&gt;&lt;/span&gt;&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;span style="font-size: small;"&gt;Certain merge replication functionalities, such as logical records, can still prevent the stream &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: small;"&gt;optimization from being used when replicating binary large objects even with &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: small;"&gt;stream_blob_columns set to true. &lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3462326" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Peformance/">Peformance</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Merge/">Merge</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication/">Replication</category></item><item><title>Replication: If sql_variant column includes a value with new datetime type, the value is replicated as base type nvarchar even if schema option 0x200000000 is not set</title><link>http://blogs.technet.com/b/claudia_silva/archive/2011/10/20/replication-if-sql-variant-column-includes-a-value-with-new-datetime-type-the-value-is-replicated-as-base-type-nvarchar-even-if-schema-option-0x200000000-is-not-set.aspx</link><pubDate>Thu, 20 Oct 2011 09:01:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3460409</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3460409</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2011/10/20/replication-if-sql-variant-column-includes-a-value-with-new-datetime-type-the-value-is-replicated-as-base-type-nvarchar-even-if-schema-option-0x200000000-is-not-set.aspx#comments</comments><description>&lt;p&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small; text-decoration: underline;"&gt;&lt;strong&gt;Problem:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;If sql_variant column includes a value with new datetime type, the value is replicated as base type nvarchar even if schema option 0x200000000 is not set during the application of the SNAPSHOT (only).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;After the snapshot has been applied, if you execute the command to verify the property of the sql_variant column: &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;span style="color: #0000ff;" color="#0000ff"&gt;&lt;span style="color: #0000ff;" color="#0000ff"&gt;&lt;span style="color: #0000ff;" color="#0000ff"&gt;&lt;span face="Arial" size="1"&gt;SELECT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span size="1"&gt;&lt;span face="Arial"&gt; &lt;span style="color: #ff00ff;" color="#ff00ff"&gt;&lt;span style="color: #ff00ff;" color="#ff00ff"&gt;&lt;span style="color: #ff00ff;" color="#ff00ff"&gt;SQL_VARIANT_PROPERTY&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080;" color="#808080"&gt;&lt;span style="color: #808080;" color="#808080"&gt;&lt;span style="color: #808080;" color="#808080"&gt;(column_name&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080;" color="#808080"&gt;&lt;span style="color: #808080;" color="#808080"&gt;&lt;span style="color: #808080;" color="#808080"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff0000;" color="#ff0000"&gt;&lt;span style="color: #ff0000;" color="#ff0000"&gt;&lt;span style="color: #ff0000;" color="#ff0000"&gt;'BaseType'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080;" color="#808080"&gt;&lt;span style="color: #808080;" color="#808080"&gt;&lt;span style="color: #808080;" color="#808080"&gt;),&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="color: #808080;" color="#808080"&gt;&lt;span style="color: #808080;" color="#808080"&gt;&lt;span style="color: #808080;" color="#808080"&gt;*&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="color: #0000ff;" color="#0000ff"&gt;&lt;span style="color: #0000ff;" color="#0000ff"&gt;&lt;span style="color: #0000ff;" color="#0000ff"&gt;FROM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="color: #008080;" color="#008080"&gt;table_name&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;span size="1"&gt;&lt;span face="Arial"&gt;&lt;span color="#008080"&gt;You will see that on the Publisher it shows as (example) DATE while on the subscriber its NVARCHAR&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small; text-decoration: underline;"&gt;&lt;strong&gt;Cause:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;Its an issue that invovles both the snapshot agent and SNAC10. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small; text-decoration: underline;"&gt;&lt;strong&gt;Solution/Workaround&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;THE &lt;/span&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;WORKAROUND THAT WAS POSTED HERE BEFORE HAS BEEN REMOVED AS IT HAD OTHER IMPLICATIONS AND IS NOT RECOMMENDED&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;Microsoft&amp;nbsp;is still looking into this however the solution to this issue is to verify if sql_variant is the right datatype to use or if there is anything way&amp;nbsp;(within the app&amp;nbsp;code) to&amp;nbsp;work around the&amp;nbsp;basetype difference.&lt;/span&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3460409" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication+Errors/">Replication Errors</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Merge/">Merge</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Transactional/">Transactional</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication/">Replication</category></item><item><title>Replication: XML data loss occurs when Merge agent fails with Violation of Foreign Key</title><link>http://blogs.technet.com/b/claudia_silva/archive/2011/09/28/replication-xml-data-loss-occurs-when-merge-agent-fails-with-violation-of-foreign-key.aspx</link><pubDate>Wed, 28 Sep 2011 08:04:43 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3456009</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3456009</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2011/09/28/replication-xml-data-loss-occurs-when-merge-agent-fails-with-violation-of-foreign-key.aspx#comments</comments><description>&lt;p&gt;&lt;strong&gt;Problem&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;span style="color: blue; font-family: 'Calibri','sans-serif'; font-size: 10pt;"&gt;Consider the following scenario:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You use a merge publication operation to replicate XML data in Microsoft SQL Server 2005, in Microsoft SQL Server 2008, or in Microsoft SQL Server 2008 R2.&lt;/li&gt;
&lt;li&gt;A foreign key violation error occurs in the same merge replication batch.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="color: blue; font-family: 'Calibri','sans-serif'; font-size: 10pt;"&gt;In this scenario, you may find the merge replication fails and the XML data is partly replicated or lost. Additionally, an error message that resembles the following is logged in the SQL Server error log if this issue occurs:&lt;/span&gt;&lt;/p&gt;
&lt;div class="indent"&gt;
&lt;div class="kb_errormsgbody"&gt;
&lt;div class="kb_errorcontent"&gt;
&lt;div class="errormsg"&gt;The merge process could not replicate one or more Insert statements to the Publisher. A Stored Procedure failed to execute.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Cause&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;This issue occurs because the merge replication stays in an error state and cannot handle a sequential stream of the XML data when a Foreign Key violation error occurs.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Solution&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://support.microsoft.com/kb/2582285"&gt;http://support.microsoft.com/kb/2582285&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3456009" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication+Errors/">Replication Errors</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Merge/">Merge</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication/">Replication</category></item><item><title>Replication: What is the difference between Database Compatibility Mode and Publication Compatibility Mode</title><link>http://blogs.technet.com/b/claudia_silva/archive/2011/09/28/replication-what-is-the-difference-between-database-compatibility-mode-and-publication-compatibility-mode.aspx</link><pubDate>Wed, 28 Sep 2011 08:00:21 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3456007</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3456007</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2011/09/28/replication-what-is-the-difference-between-database-compatibility-mode-and-publication-compatibility-mode.aspx#comments</comments><description>&lt;p&gt;&lt;strong&gt;Database Compatibility Mode&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;Compatibility level affects behaviors only for the &lt;b&gt;&lt;span style="text-decoration: underline;"&gt;specified database&lt;/span&gt;&lt;/b&gt;, not for the entire server. Compatibility level provides only partial backward compatibility with earlier versions of SQL Server. Use compatibility level as an interim migration aid to work around version&lt;br /&gt;differences in the behaviors that are controlled by the relevant compatibility-level setting.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;In this link, you see some examples of how the database compt mode alters the way SQL &amp;ldquo;treats&amp;rdquo; the database, for example:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;With a DB COMPT LEVEL of 90 --&amp;gt; SET XACT_ABORT OFF is not allowed inside a trigger.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/bb510680.aspx"&gt;http://msdn.microsoft.com/en-us/library/bb510680.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Publication Compatibility Mode&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;Merge replication uses the publication compatibility level to determine which features can be used by &lt;b&gt;&lt;span style="text-decoration: underline;"&gt;publications in a given database&lt;/span&gt;&lt;/b&gt;. The values range from 80RTM (SQL Server 2000 that has no service packs installed) to 100RTM for SQL Server 2008.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;Examples of how the publication compatibility level affects the publication:&lt;/p&gt;
&lt;p&gt;The following features require a compatibility level of 90RTM or higher:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Logical&lt;br /&gt;records&lt;/li&gt;
&lt;li&gt;Subscriber&lt;br /&gt;upload options.&lt;/li&gt;
&lt;li&gt;Nonoverlapping&lt;br /&gt;partitions&lt;/li&gt;
&lt;li&gt;Business&lt;br /&gt;logic handlers&lt;/li&gt;
&lt;li&gt;Schema&lt;br /&gt;changes that use ALTER &amp;lt;OBJECT&amp;gt; statements&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms143241.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms143241.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So basically:&lt;/p&gt;
&lt;p&gt;DB compatibility mode affects the DATABASE (and what you can do using this database)&lt;/p&gt;
&lt;p&gt;Publication Compatibility mode affects the PUBLICATION (and what you can do in replication)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3456007" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Merge/">Merge</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Transactional/">Transactional</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication/">Replication</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication+_2D00_+Mobile/">Replication - Mobile</category></item><item><title>Replication: Snapshot agent execution causes system Available Memory to drop to 0 and possibly fail </title><link>http://blogs.technet.com/b/claudia_silva/archive/2011/09/28/replication-snapshot-agent-execution-causes-system-available-memory-to-drop-to-0-and-possibly-fail.aspx</link><pubDate>Wed, 28 Sep 2011 07:53:33 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3456005</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3456005</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2011/09/28/replication-snapshot-agent-execution-causes-system-available-memory-to-drop-to-0-and-possibly-fail.aspx#comments</comments><description>&lt;p&gt;&lt;strong&gt;Problem&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;While running the snapshot agent, the available memory of the server goes down to 0 and snapshot may even fail. Should the snapshot complete, the memory is released very slowly.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Cause&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;This is because in the current design (SQL 2005 and higher), snapshot agent uses SNAC BCP provider which uses memory mapped files for BCP out data and does not flush the data based on a threshold.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Solution&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://support.microsoft.com/kb/2582285"&gt;http://support.microsoft.com/kb/2582285&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3456005" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Peformance/">Peformance</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication+Errors/">Replication Errors</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Merge/">Merge</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Transactional/">Transactional</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication/">Replication</category></item><item><title>Replication: Error "You can only specify the READPAST lock in the READ COMMITTED or REPEATABLE READ isolation levels" generated when altering published table columns</title><link>http://blogs.technet.com/b/claudia_silva/archive/2011/08/08/replication-error-quot-you-can-only-specify-the-readpast-lock-in-the-read-committed-or-repeatable-read-isolation-levels-quot-generated-when-altering-published-table-columns.aspx</link><pubDate>Mon, 08 Aug 2011 14:42:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3445716</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3445716</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2011/08/08/replication-error-quot-you-can-only-specify-the-readpast-lock-in-the-read-committed-or-repeatable-read-isolation-levels-quot-generated-when-altering-published-table-columns.aspx#comments</comments><description>&lt;p&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Problem&lt;/span&gt;:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Error "&lt;span style="color: #ff0000;"&gt;&lt;em&gt;You can only specify the READPAST lock in the READ COMMITTED or REPEATABLE READ isolation levels&lt;/em&gt;&lt;/span&gt;" generated when altering published table columns in a transactional replication.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span face="Calibri"&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;Cause&lt;/strong&gt;&lt;/span&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span face="Calibri"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span face="Calibri"&gt;Unable to alter columns on Published database if using any isolation level besides the &lt;span style="color: #0000ff;" color="#0000ff"&gt;READ&lt;/span&gt; &lt;span style="color: #0000ff;" color="#0000ff"&gt;&lt;span style="color: #0000ff;" color="#0000ff"&gt;&lt;span style="color: #0000ff;" color="#0000ff"&gt;COMMITTED &lt;span style="color: #000000;"&gt;or&lt;/span&gt; REPEATABLE READ&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;isolation level. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span face="Calibri"&gt;&lt;span face="Calibri"&gt;READPAST hint is not compatible with READ UNCOMMITTED isolation level, but only with READ COMMITTED and REPEATABLE READ isolation levels. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;READPAST hint is used in internal stored procedures in order to resolve issues within replication.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span face="Calibri"&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;Solution/Workaround&lt;/strong&gt;&lt;/span&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span face="Calibri"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Other options (other isolations levels) that reduce locking:&lt;/p&gt;
&lt;p&gt;In SQL Server, you can also minimize locking contention while protecting transactions from dirty reads of uncommitted data modifications&lt;br /&gt;using either:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The READ COMMITTED isolation level with the READ_COMMITTED_SNAPSHOT database option set to ON.&lt;/li&gt;
&lt;li&gt;The SNAPSHOT isolation level.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms173763.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms173763.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;An alternative would be to create a stored procedure that performs the alter statement, in which we specify the isolation level necessary, and call that stored procedure when the alterations to the columns is needed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3445716" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication+Errors/">Replication Errors</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Transactional/">Transactional</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication/">Replication</category></item><item><title>Replication: Merge Performance Tip</title><link>http://blogs.technet.com/b/claudia_silva/archive/2011/08/08/replication-merge-performance-tip.aspx</link><pubDate>Mon, 08 Aug 2011 14:19:39 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3445708</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3445708</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2011/08/08/replication-merge-performance-tip.aspx#comments</comments><description>&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;Problem&lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;Publisher: SQL Server 2008&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;Subscriber: SQL Server Compact 3.5&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;Merge Replication&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;Performance issue when using keep_partition_changes or precomputed partitions&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;Cause&lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;There could be&amp;nbsp;many causes to this and analysis would have to be done however sometimes it may be due to missing indexes.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small; text-decoration: underline;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;Solution/Workaround&lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;In a test environment, use the following indexes and verify performance:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;CREATE NONCLUSTERED INDEX [&amp;lt;Name of Missing &lt;/span&gt;&lt;span style="font-size: x-small;"&gt;Index, sysname,&amp;gt;]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;ON [dbo].[MSmerge_current_partition_mappings] ([partition_id])&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;INCLUDE ([rowguid])&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;GO&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;//--//&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;-- changed and new indexes on system tables&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;DROP INDEX nc5MSmerge_contents ON &lt;/span&gt;&lt;span style="font-size: x-small;"&gt;MSmerge_contents&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;CREATE NONCLUSTERED INDEX [NCL_marker] ON [dbo].[MSmerge_contents] &lt;/span&gt;&lt;span style="font-size: x-small;"&gt;([marker], rowguid)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;CREATE NONCLUSTERED INDEX &lt;/span&gt;&lt;span style="font-size: x-small;"&gt;[NCL_partition_id_rowguid] ON [dbo].MSmerge_current_partition_mappings &lt;/span&gt;&lt;span style="font-size: x-small;"&gt;(partition_id, [rowguid])&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;-- update statistics on system tables&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;update statistics &lt;/span&gt;&lt;span style="font-size: x-small;"&gt;MSmerge_current_partition_mappings with fullscan&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;update statistics MSmerge_contents with &lt;/span&gt;&lt;span style="font-size: x-small;"&gt;fullscan&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;update statistics MSmerge_partition_groups with &lt;/span&gt;&lt;span style="font-size: x-small;"&gt;fullscan&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;-- update statistics on all tables involved in &lt;/span&gt;&lt;span style="font-size: x-small;"&gt;join filters&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;update statistics &amp;lt;table name&amp;gt; with &lt;/span&gt;&lt;span style="font-size: x-small;"&gt;fullscan&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3445708" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Peformance/">Peformance</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Merge/">Merge</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication/">Replication</category></item><item><title>Replication: Fake Conflicts?</title><link>http://blogs.technet.com/b/claudia_silva/archive/2011/06/29/replication-fake-conflicts.aspx</link><pubDate>Wed, 29 Jun 2011 07:47:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3438098</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3438098</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2011/06/29/replication-fake-conflicts.aspx#comments</comments><description>&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;One problem that is hard to resolve / understand is fake conflicts within a merge replication topology.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Looking at a scenario in which fake conflicts were occurring, we saw that following:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Our affected subscriber is synchronizing with 2 publications that have retention=14. The publisher also has an additional publication with retention=30. All the publications are on the same published database.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;For the affected rowguids, we noticed that the MSmerge_contents entry still exists on the publisher, but was recently cleaned up on the subscriber.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Example of what we saw:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;For a column-tracking article:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;-&amp;nbsp; common colv1 before cleanup shows that columns 1, 2, 3 had been updated previously&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;-&amp;nbsp; clean-up removes the MSmerge_contents row on sub but not on pub&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;-&amp;nbsp; sub updates the row, thus inserting a new row into MSmerge_contents&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;-&amp;nbsp; updated columns are 2 and 3&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;-&amp;nbsp; synchronisation detects a mismatch, deduces a conflict, and the subscriber loses its data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Reason for this issue in this scenario is:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;The subscriber cleanup takes the 14 days limit, whereas the publisher clean-up uses the 30 day limit.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms151778.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms151778.aspx&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;The default retention period for publications is 14 days. If an article belongs to several publications, there might be different retention periods. In that situation, the longest retention period is used to determine the earliest possible time that clean-up can occur.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Resolution in this case was to have all the publications set with the same retention period&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3438098" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication+Errors/">Replication Errors</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Merge/">Merge</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication/">Replication</category></item><item><title>Note to all Readers</title><link>http://blogs.technet.com/b/claudia_silva/archive/2011/06/08/note-to-all-readers.aspx</link><pubDate>Wed, 08 Jun 2011 15:30:43 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3434355</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3434355</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2011/06/08/note-to-all-readers.aspx#comments</comments><description>&lt;p&gt;&lt;span style="font-size: small;"&gt;Seems like there was an issue with the comments for this blog - I wasn&amp;rsquo;t getting notified and hence never got to respond.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: small;"&gt;My apologies to all those that commented and never got a reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: small;"&gt;If you do have a comment, please do not hesitate to e-mail me by selecting "e-mail Blog Author"&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: small;"&gt;Thanks!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3434355" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Peformance/">Peformance</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication+Errors/">Replication Errors</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/YOUR+questions/">YOUR questions</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/SQL+Nexus/">SQL Nexus</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Recommended+Books/">Recommended Books</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Merge/">Merge</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Transactional/">Transactional</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication/">Replication</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/SQL+Engine/">SQL Engine</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication+_2D00_+Mobile/">Replication - Mobile</category></item><item><title>REPLICATION: My distribution agent generates a dump when replicating with my Oracle Subscriber</title><link>http://blogs.technet.com/b/claudia_silva/archive/2011/06/08/replication-my-distribution-agent-generates-a-dump-when-replicating-with-my-oracle-subscriber.aspx</link><pubDate>Wed, 08 Jun 2011 15:24:19 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3434351</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3434351</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2011/06/08/replication-my-distribution-agent-generates-a-dump-when-replicating-with-my-oracle-subscriber.aspx#comments</comments><description>&lt;p&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;PROBLEM&lt;/strong&gt;&lt;/span&gt;:&lt;/p&gt;
&lt;p&gt;I have a SQL Server 2005 replicating with an Oracle 11 subscriber.&lt;/p&gt;
&lt;p&gt;After installing the OLEDB driver for Oracle 11, a minidump is created every time the distributor tries to connect to Oracle: Distrib.exe crashes with STACK_OVERFLOW exception.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The issue occurs while initializing the subscriber therefore as soon as it tries to connect to Oracle.&lt;/p&gt;
&lt;p&gt;In addition to the information mentioned above, I also get the following error when i execute a query against the linked server to Oracle:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;SELECT &amp;lt;all column names&amp;gt; FROM [xxxxx]..[xxxxxx].[MSREPL7]&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color: #ffffff; color: #ff0000;"&gt;Msg 7356, Level 16, State 1, Line 1&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #ffffff; color: #ff0000;"&gt;The OLE DB provider "OraOLEDB.Oracle" for linked server "xxxxx" supplied inconsistent metadata for a column. &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #ffffff; color: #ff0000;"&gt;The column "column_name" (compile-time ordinal 1) of object ""xxxxxx"."MSREPL7"" was reported to have a "LENGTH" of 128 at compile time and 256 at run time.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;CAUSE&lt;/strong&gt;&lt;/span&gt;:&lt;/p&gt;
&lt;p&gt;This is caused by the fact that the&amp;nbsp;distrib.exe stack size is 256 KB - hence the stack overflow.&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;WORKAROUND / SOLUTION&lt;/strong&gt;&lt;/span&gt;:&lt;/p&gt;
&lt;p&gt;Only known supported solution is to upgrade to SQL Server 2008: SQL Server 2008's distrib stack is 1 MB. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3434351" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication+Errors/">Replication Errors</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Transactional/">Transactional</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication/">Replication</category></item><item><title>Replication: The row was not found at the Subscriber when applying the replicated command - Error 20598</title><link>http://blogs.technet.com/b/claudia_silva/archive/2011/06/08/replication-the-row-was-not-found-at-the-subscriber-when-applying-the-replicated-command-error-20598.aspx</link><pubDate>Wed, 08 Jun 2011 09:05:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3434273</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3434273</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2011/06/08/replication-the-row-was-not-found-at-the-subscriber-when-applying-the-replicated-command-error-20598.aspx#comments</comments><description>&lt;p&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Problem&lt;/span&gt;&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;I have a transactional replication topology that consists of SQL 2005 and SQL 2000.&lt;/p&gt;
&lt;p&gt;I managed to generate the snapshot but when I try to apply it on the subscribers, I get the following error:&lt;/p&gt;
&lt;p&gt;Error number 20598: "&lt;b&gt;The row was not found at the Subscriber when applying the replicated command&lt;/b&gt;".&lt;/p&gt;
&lt;p&gt;Using &amp;ldquo;Skip Error&amp;rdquo; doesn&amp;rsquo;t resolve the issue.&lt;/p&gt;
&lt;p&gt;Additional information:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;My user tables are heavily used/modified. When the publisher is in single user more, I do not have this issue.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Cause&lt;/span&gt;&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;I had &amp;ldquo;&lt;b&gt;READ_COMMITTED_SNAPSHOT ON&lt;/b&gt;&amp;rdquo; and &amp;ldquo;&lt;strong&gt;ALLOW_SNAPSHOT_ISOLATION ON&lt;/strong&gt;&amp;rdquo; enabled on the database&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Workaround/Solution&lt;/span&gt;&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;I used @sync_method =&amp;rsquo;concurrent&amp;rsquo;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/tcbchxcb(v=vs.80).aspx"&gt;http://msdn.microsoft.com/en-us/library/tcbchxcb(v=vs.80).aspx&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3434273" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication+Errors/">Replication Errors</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Transactional/">Transactional</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication/">Replication</category></item><item><title>Replication: Unable to Synchronize subscribers via Web Synchronization</title><link>http://blogs.technet.com/b/claudia_silva/archive/2011/05/12/replication-unable-to-synchronize-subscribers-via-web-synchronization.aspx</link><pubDate>Thu, 12 May 2011 12:06:41 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3428432</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3428432</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2011/05/12/replication-unable-to-synchronize-subscribers-via-web-synchronization.aspx#comments</comments><description>&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;Problem&lt;/strong&gt;&lt;/span&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;The upload message to be sent to Publisher 'XXX' is being generated&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;The merge process is using Exchange ID 'XXXXX' for this web synchronization session.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;No data needed to be merged.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Request message generated, now making it ready for upload.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Upload request size is 1024 bytes.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Uploaded a total of 1 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;The request message was sent to 'https://xxxxx/replisapi.dll'&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 100 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 200 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 300 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 400 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 500 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 600 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 700 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 800 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 900 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 1000 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 1100 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 1200 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 1300 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 1400 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 1500 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 1600 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 1700 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 1800 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 1900 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 2000 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 2100 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 2200 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 2300 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 2400 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 2500 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 2600 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 2700 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 2800 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 2900 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 3000 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Downloaded a total of 3100 chunks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;The response message was received from 'https://xxxxx/replisapi.dll' and is being processed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color: #ffff00; font-family: trebuchet ms,geneva; font-size: small;"&gt;&lt;strong&gt;SynchronizeSubscriptionFull:ComErrorException: -2147467259_The format of a message during Web synchronization was invalid. Ensure that replication components are properly configured at the Web server.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;Cause&lt;/strong&gt;&lt;/span&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;To help avoid potential memory problems on Subscriber computers, Web synchronization uses a default maximum size of 100 MB for the XML file used to transfer changes.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;Workaround/Solution&lt;/strong&gt;&lt;/span&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Best option is to look at the amount of data that is being transferred over. Make sure pre-computed partitions is enabled. If this issue still persists than the solution is to do the following:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;PLEASE NOTE:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;This registry key ONLY works on SQL 2008 and SQL 2008 R2. If your experiencing this issue in SQL 2005 than an upgrade will be necessary.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms151255(v=SQL.100).aspx"&gt;http://msdn.microsoft.com/en-us/library/ms151255(v=SQL.100).aspx&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;The limit can be raised by setting the following registry key:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\100\Replication&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;WebSyncMaxXmlSize DWORD 2000000&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;The range of acceptable values for this key is 100 MB to 4GB. The value is specified in KB. Setting this parameter to a high value does not guarantee that you can synchronize that amount of data. The effective limit is constrained by how much contiguous memory is available on the Subscriber computer. If you must have a value larger than 100 MB, we recommend that you increase the value incrementally and test memory consumption with a typical workload on the Subscriber.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;The maximum size for the XML file is 4 GB, but replication synchronizes the changes from that file in batches. The maximum batch size of data and metadata is 25 MB. You must ensure that the data in each batch does not exceed approximately 20 MB, which allows for metadata and any other overhead. This limit has the following implications:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&amp;middot; You cannot replicate any column that causes the data and metadata to exceed 25 MB. This might be an issue when you are replicating rows that contain large data types, such as varchar(max).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&amp;middot; If you replicate large volumes of data, you might have to adjust the Merge Agent batch size.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;Batch size for merge replication is measured in generations, which are collections of changes per article. The number of generations in a batch is specified by using the &amp;ndash;DownloadGenerationsPerBatch and &amp;ndash;UploadGenerationsPerBatch parameters of the Merge Agent. For more information, see Replication Merge Agent. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;For large volumes of data, specify a small number for each of the batching parameters. We recommend that you start with a value of 10, and then tune based on application needs and performance. Typically, these parameters are specified in an agent profile. For more information about profiles, see Replication Agent Profiles.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: trebuchet ms,geneva; font-size: small;"&gt;This key needs to be added on the IIS server and the server where the merge agent is running.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3428432" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication+Errors/">Replication Errors</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Merge/">Merge</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication/">Replication</category></item><item><title>Replication: Issue with setting up Transactional Replication with Updatable Subscribers and NFR Triggers</title><link>http://blogs.technet.com/b/claudia_silva/archive/2010/07/26/replication-issue-with-setting-up-transactional-replication-with-updatable-subscribers-and-nfr-triggers.aspx</link><pubDate>Mon, 26 Jul 2010 09:19:54 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3346808</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3346808</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2010/07/26/replication-issue-with-setting-up-transactional-replication-with-updatable-subscribers-and-nfr-triggers.aspx#comments</comments><description>&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Problem&lt;/span&gt;&lt;/strong&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;I have set up a Transactional Replication with Updatable Subscribers on my SQL 2005 server and created user triggers on the Publisher database. These triggers have been configured with &amp;ldquo;not for replication&amp;rdquo;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;I&amp;nbsp;update my subscriber and the changes are propagated onto the publisher. I then update my publisher and these changes are not sent to the subscriber even though no error message is flagged. If I attempt to alter the data on the subscriber side, I obtain the following error:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;&lt;span style="color: #ff0000;"&gt;Server: Msg 20515, Level 16, State 1, &lt;/span&gt;&lt;span style="color: #ff0000;"&gt;Procedure sp_MSreplraiserror, Line 9 &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;&lt;span style="background-color: #ffffff;"&gt;Updatable Subscribers: Rows do not match between Publisher and Subscriber. Refresh rows at Subscriber. Server: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;&lt;span style="background-color: #ffffff;"&gt;Msg 20512, Level 16, State 1, Procedure sp_MSreplraiserror, Line 8 &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;&lt;span style="background-color: #ffffff;"&gt;Updatable Subscribers: Rolling back transaction.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;This issue is &lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;not&lt;/span&gt;&lt;/strong&gt; reproducible in SQL 2000 &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;This issue is reproducible in SQL 2008&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Cause &amp;amp; &lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Workaround&lt;/span&gt;:&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;Looking at SQL 2000&amp;rsquo;s behaviour:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;There was an issue in SQL2000 in regards to cached plans for stored procedures with regard to repl agent connection: when a proc is first executed by repl agent, the plan contains information about repl agent connection property, this plan is cached, later when proc is executed by non-repl connection the same plan is used hence it will behave as if it was executed by repl agent. In this particular case sync procs on publisher side are created by replication snapshot agent hence the plan was created with repl agent connection flag, when subscriber trigger fires and invoke publisher side sync proc through RPC, it should have been treated as non-repl connection but sync proc on publisher was using the cached plan from before hence it was behaving as if coming from repl agent connection. If you manually drop and recreate the sync procs on publisher from QA window, subsequent subscriber side change will cause user NFR trigger on publisher to fire, this has been fixed in SQL2005 hence the behaviour difference.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;Unfortunately the problem in SQL2000, as&amp;nbsp;described above,&amp;nbsp;was indeed a pretty serious one as well, because once sync procs on publishers are created by snapshot agent, it will always behave as if called by repl agent, which means one can in theory invoke them directly in publisher db and it would honour NFR trigger by not firing them. This is undesired and can be considered as a hole. Not to mention if user manually drop and recreate these sync procs for whatever reason, it will behave the same as SQL2005.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;Having said these, we realize the inconsistent behaviour and we are taking steps to provide better and more consistent user experience:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;1. the fix we made in SQL2005 was meant to plug the hole so NFR triggers are only honoured by repl agent connection&lt;br /&gt;2. there is still the fundamental difference in how RPC and repl agent behave in this case, we hope to provide better support to updateable scenario by adding conflict detection capability into Peer-to-peer replication to in the near future we can consider deprecating 'immediate update' future which means by then all updateable subscription will be serviced by repl agent instead of RPC, which will help providing uniformly consistent behaviour.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;Workaround for&amp;nbsp;this issue:&lt;br /&gt;1) consider using 'queued' as the update mode instead of 'failover' -&amp;nbsp;if you leave queued agent running in continuous mode it will work near real-time (within a couple of second) and NFR trigger will always behave as you expected.&lt;br /&gt;2)&amp;nbsp;create publisher side trigger not as NFR and add context_info logic (see 'set context info ..' in BOL) into subscriber side so publisher trigger can figure out if a change was made on subscriber or publisher.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;Example:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;IF NOT EXISTS(SELECT * FROM master.dbo.sysprocesses&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE spid = @@SPID AND &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONVERT(tinyint, SUBSTRING(context_info, 1, 1)) &amp;amp; 0x80 = 0x80)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RETURN &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3346808" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication+Errors/">Replication Errors</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Transactional/">Transactional</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication/">Replication</category></item><item><title>CDC: CDC Hangs when I try to disable it</title><link>http://blogs.technet.com/b/claudia_silva/archive/2010/06/04/cdc-cdc-hangs-when-i-try-to-disable-it.aspx</link><pubDate>Fri, 04 Jun 2010 15:05:49 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3335843</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3335843</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2010/06/04/cdc-cdc-hangs-when-i-try-to-disable-it.aspx#comments</comments><description>&lt;p&gt;&lt;font face="Segoe UI"&gt;&lt;font size="2"&gt;&lt;strong&gt;Problem Description&lt;/strong&gt;: &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;SQL Server 2008 SP1&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;Transactional Replication&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;CDC enabled&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;I have an issue that occurs while trying to disable CDC on one of my databases. &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;When I execute the system stored procedure sys.sp_cdc_disable_db, the procedure will hang waiting on a “REPL_HISTORYCACHE_ACCESS” lock for an indefinite amount of time.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Segoe UI"&gt;&lt;font size="2"&gt;&lt;strong&gt;Workaround / Solution&lt;/strong&gt;:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;The cause of the issue is due to when a log reader agent is shut down, the server session of log reader (sp_replcmds) may not be shut down gracefully. It will appear as if there is an active session.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;Work around is to completely stop the log reader agent before running ‘remove’ logic. &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;This issue will be fixed in SQL Server 2008 SP2.&lt;/font&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3335843" width="1" height="1"&gt;</description></item><item><title>Replication: SQLCESALOG: Is it possible to change the number of files and the size of each?</title><link>http://blogs.technet.com/b/claudia_silva/archive/2010/05/26/replication-sqlcesalog-is-it-possible-to-change-the-number-of-files-and-the-size-of-each.aspx</link><pubDate>Wed, 26 May 2010 11:51:10 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3333771</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3333771</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2010/05/26/replication-sqlcesalog-is-it-possible-to-change-the-number-of-files-and-the-size-of-each.aspx#comments</comments><description>&lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;Yes it is.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;Following the following KB article:&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;a title="http://support.microsoft.com/kb/955968" href="http://support.microsoft.com/kb/955968"&gt;&lt;font size="2" face="Segoe UI"&gt;http://support.microsoft.com/kb/955968&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;In SP1 for SQL Server Compact 3.5 is different from previous versions. Please check KB article for differences.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;MaxLogFileSize and MaxPreviousLogFiles are the two keys that we can use to alter the file size and increase the previous log files.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;There is a minimum value for MaxLogFileSize (1 MB) and the default value for MaxPreviousLogFiles is 2.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;When enabled, and each time IIS re-starts, a file will be kept in the log folder (up to 3 files created). This can be changed:&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;The SQL Server Compact 3.5 SP1 log management functionality limits how many old log files are kept on disk before these files are deleted.      &lt;br /&gt;&lt;b&gt;Note&lt;/b&gt; By default, two old log files are kept on disk. You can configure this number to a maximum of 99. To do this, set the MaxPreviousLogFiles DWORD value for the following registry subkeys: &lt;/font&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;font size="2" face="Segoe UI"&gt;For SQL Server Compact 3.5 Client Agent logging: &lt;/font&gt;      &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;HKEY_CURRENT_USER\Software\Microsoft\Microsoft Sql Server Compact Edition\v3.5\Log\Sqlceca&lt;/font&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;&lt;font size="2" face="Segoe UI"&gt;For SQL Server Compact 3.5 Server Agent logging: &lt;/font&gt;      &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SQL Server Compact Edition\v3.5\Log\Sqlcesa&lt;/font&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;&lt;font size="2" face="Segoe UI"&gt;For SQL Server Compact 3.5 Replication Provider logging: &lt;/font&gt;      &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SQL Server Compact Edition\v3.5\Log\Sqlcerp&lt;/font&gt;&lt;/p&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;ul&gt;   &lt;li&gt;&lt;font face="Segoe UI"&gt;&lt;font size="2"&gt;You can change the maximum size of a log file by setting the MaxLogFileSize DWORD value of the following registry subkeys.         &lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;font face="Segoe UI"&gt;&lt;font size="2"&gt;&lt;b&gt;For desktops&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;font size="2" face="Segoe UI"&gt;For SQL Server Compact 3.5 Client Agent logging: &lt;/font&gt;      &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server Compact Edition\v3.5\Log\Sqlceca&lt;/font&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;&lt;font size="2" face="Segoe UI"&gt;For SQL Server Compact 3.5 Server Agent logging: &lt;/font&gt;      &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SQL Server Compact Edition\v3.5\Log\Sqlcesa&lt;/font&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;&lt;font size="2" face="Segoe UI"&gt;For SQL Server Compact 3.5 Replication Provider logging: &lt;/font&gt;      &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SQL Server Compact Edition\v3.5\Log\Sqlcerp&lt;/font&gt;&lt;/p&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;b&gt;&lt;font size="2" face="Segoe UI"&gt;For devices&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;font size="2" face="Segoe UI"&gt;For SQL Server Compact 3.5 Client Agent logging: &lt;/font&gt;      &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server Compact Edition\v3.5\Log\Sqlceca&lt;/font&gt;&lt;/p&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;b&gt;&lt;font size="2" face="Segoe UI"&gt;Notes&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;font size="2" face="Segoe UI"&gt;There is no maximum value for the MaxLogFileSize value. &lt;/font&gt;&lt;/li&gt;    &lt;li&gt;&lt;font size="2" face="Segoe UI"&gt;The minimum value for the MaxLogFileSize value for desktops is 1024 kilobytes (KB). For devices, the maximum is 512 KB. &lt;/font&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;ul&gt;   &lt;li&gt;&lt;font size="2" face="Segoe UI"&gt;For SQL Server Compact 3.5 Client Agent logging, log file rotation occurs every time that an application or a process that uses SQL Server Compact is started.       &lt;br /&gt;For SQL Server Compact 3.5 Server Agent logging and for SQL Server Compact 3.5 Replication Provider logging, log file rotation occurs every time that IIS is restarted. &lt;/font&gt;&lt;/li&gt;    &lt;li&gt;&lt;font size="2" face="Segoe UI"&gt;If there are no registry entries for log file rotation, rotation occurs with the following default values as soon as logging is enabled: &lt;/font&gt;      &lt;ul&gt;       &lt;li&gt;&lt;font size="2" face="Segoe UI"&gt;MaxPreviousLogFiles: 2 &lt;/font&gt;&lt;/li&gt;        &lt;li&gt;&lt;font size="2" face="Segoe UI"&gt;MaxLogFileSize: 1024 (1 MB) &lt;/font&gt;&lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2" face="Segoe UI"&gt;NOTE: If the registry keys are not found in the Registry, then you will have to create them. You will have to create (for example) a key for LOG, a key for Sqlcesa and then a DWORD reflecting the alteration you want (log file size or number). &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt; &lt;font size="2" face="Segoe UI"&gt;   &lt;hr /&gt;&lt;/font&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3333771" width="1" height="1"&gt;</description></item><item><title>Replication: Merge Fails with error : “The process could not increment the lineage version”</title><link>http://blogs.technet.com/b/claudia_silva/archive/2010/03/04/replication-merge-fails-with-error-the-process-could-not-increment-the-lineage-version.aspx</link><pubDate>Thu, 04 Mar 2010 10:45:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3316768</guid><dc:creator>clsilva</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3316768</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2010/03/04/replication-merge-fails-with-error-the-process-could-not-increment-the-lineage-version.aspx#comments</comments><description>&lt;P&gt;I have come across this interesting issue in which we have the following scenario:&lt;/P&gt;
&lt;P&gt;Merge Replication&lt;/P&gt;
&lt;P&gt;All servers are running SQL 2008&lt;/P&gt;
&lt;P&gt;When merge replication is processing certain published articles, we see that the merge agent is blocked, and is being blocked by another spid executing another task coming from the &lt;STRONG&gt;same&lt;/STRONG&gt; merge agent. &lt;/P&gt;
&lt;P&gt;A close look through a profiler trace, we see:&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;Spid 59 is blocking on spid 69. &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Spid 59&lt;/U&gt;&lt;/STRONG&gt;:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;59 runnable&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0063&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 562&amp;nbsp; SELECT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PREEMPTIVE_OS_WAITFORSINGLEOBJEC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC CLAUDY-MERGETEST-MERGETEST-CLAUDY2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Spid 69&lt;/U&gt;:&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;69 suspended&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 59&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7 KEY: 6:72057594057916416 (1f02b882c015)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0005&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 296281 UPDATE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LCK_M_X&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC&amp;nbsp;&amp;nbsp;&amp;nbsp; CLAUDY-MERGETEST-MERGETEST-CLAUDY2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Spid 69 –&amp;gt; sp_MSuplineageversion&lt;/P&gt;
&lt;P&gt;Spid 59 –&amp;gt; sp_msenumchangesdirect&lt;/P&gt;
&lt;P&gt;Points to mention:&lt;/P&gt;
&lt;P&gt;a. same merge agent for both spids&lt;/P&gt;
&lt;P&gt;b. LPC being used&lt;/P&gt;
&lt;P&gt;c. Waittype of “preemptive_os_waitforsingleobject” for the blocking spid&lt;/P&gt;
&lt;P&gt;–&amp;gt; please read the CSS Blog for more information in regards to this waittype (&lt;A title=http://blogs.msdn.com/psssql/archive/2009/11/03/the-sql-server-wait-type-repository.aspx href="http://blogs.msdn.com/psssql/archive/2009/11/03/the-sql-server-wait-type-repository.aspx" mce_href="http://blogs.msdn.com/psssql/archive/2009/11/03/the-sql-server-wait-type-repository.aspx"&gt;http://blogs.msdn.com/psssql/archive/2009/11/03/the-sql-server-wait-type-repository.aspx&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;d. 0x0063 (for spid 59) indicates AsyncNetworkIO&lt;/P&gt;
&lt;P&gt;After looking further in depth of this issue, the &lt;STRONG&gt;&lt;U&gt;workaround&lt;/U&gt;&lt;/STRONG&gt; to use if you are running into this issue is:&lt;/P&gt;
&lt;P&gt;Create an alias (the alias name &lt;STRONG&gt;has&lt;/STRONG&gt; to be the same name as the server as merge collects information in regards to the servers involved from system tables)&lt;/P&gt;
&lt;P&gt;SQL Server Configuration Manager&lt;BR&gt;SQL Native Client&lt;BR&gt;Aliases&lt;BR&gt;Create a new alias with the SQL Server Name &lt;/P&gt;
&lt;P&gt;Doing so will Force Merge agent to use TCP/IP (this can be seen in sysprocesses --&amp;gt; net_library column)&lt;/P&gt;
&lt;P&gt;Once this is set up, run merge and verify in the sysprocesses that the spids are now using TCPIP.&lt;/P&gt;
&lt;P&gt;** More info on this topic when available **&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3316768" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication+Errors/">Replication Errors</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Merge/">Merge</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication/">Replication</category></item><item><title>Replication: My merge agent keeps “dropping and creating” my newly added articles!!!</title><link>http://blogs.technet.com/b/claudia_silva/archive/2010/02/02/replication-my-merge-agent-keeps-dropping-and-creating-my-newly-added-articles.aspx</link><pubDate>Tue, 02 Feb 2010 14:18:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3310061</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3310061</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2010/02/02/replication-my-merge-agent-keeps-dropping-and-creating-my-newly-added-articles.aspx#comments</comments><description>&lt;P&gt;&lt;STRONG&gt;Problem&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;Consider the following scenario:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;You add a new article(s) to an existing publication in your merge replication environment &lt;STRONG&gt;and&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Your merge agent uses '-ParallelUploadDownload' parameter with a value of 1 for synchronization.&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Note: Merge Agent profile &lt;STRONG&gt;High Volume Server-to-Server Profile &lt;/STRONG&gt;enables parameter &lt;STRONG&gt;-ParallelUploadDownload&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In this scenario, you will notice that the merge agent enumerates the already replicated schema changes during each sync operation causing performance problems and other issues.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cause / Workaround&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;The schemaversion column in sysmergesubscriptions table at the subscriber (and publisher) stores the version of the last schema that is received. Due to this issue, this value does not get updated and always points to a version that has already been replicated over to Subscriber during the previous synchronization operation.&lt;/P&gt;
&lt;P&gt;You can workaround this issue by either disabling or removing the Merge Agent parameter &lt;STRONG&gt;&lt;STRONG&gt;-ParallelUploadDownload&lt;/STRONG&gt;&lt;/STRONG&gt; for that subscription. Disabling this parameter causes Merge Agent to update schemaversion to the correct value during next synchronization.&lt;/P&gt;
&lt;P&gt;To remove or disable this parameter edit either 'Agent job' or 'Agent Profile' using one of the following procedures that is applicable to your situation:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Agent Job:&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open Merge Agent Job properties. &lt;/LI&gt;
&lt;LI&gt;Select "Steps" page.&lt;/LI&gt;
&lt;LI&gt;Select "Run agent" step and press "Edit" button.&lt;/LI&gt;
&lt;LI&gt;In "Command", look for parameter "-ParallelUploadDownload". If it has value 1, disable it by setting it to 0 (i.e. "-ParallelUploadDownload 0"). OR Remove the parameter and its value altogether from Merge Agent command.&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;Agent Profile:&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open Replication Monitor.&lt;/LI&gt;
&lt;LI&gt;Select Merge Publication. &lt;/LI&gt;
&lt;LI&gt;Right click Subscription and go to "Agent Profile".&lt;/LI&gt;
&lt;LI&gt;Make sure Profile "High Volume Server-to-Server Profile" is NOT selected.&lt;/LI&gt;
&lt;LI&gt;If custom profile is used and if parameter "-ParallelUploadDownload" is available, make sure it is set to value 0.&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;Note: Merge Agent parameter "-ParallelUploadDownload" is deprecated in SQL Server 2008. &lt;/P&gt;
&lt;P&gt;&lt;A title=http://support.microsoft.com/kb/2003609 href="http://support.microsoft.com/kb/2003609" mce_href="http://support.microsoft.com/kb/2003609"&gt;http://support.microsoft.com/kb/2003609&lt;/A&gt;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3310061" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Peformance/">Peformance</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Merge/">Merge</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication/">Replication</category></item><item><title>Replication: The schema script could not be propagated</title><link>http://blogs.technet.com/b/claudia_silva/archive/2010/01/25/replication-the-schema-script-could-not-be-propagated.aspx</link><pubDate>Mon, 25 Jan 2010 11:21:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3308077</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3308077</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2010/01/25/replication-the-schema-script-could-not-be-propagated.aspx#comments</comments><description>&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Problem&lt;/U&gt;&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;I create a SQL Server 2005 replication topology on my Windows 2003 server. Everything synchronizes fine.&lt;/P&gt;
&lt;P&gt;I then go and add a default constraint to an article.&lt;/P&gt;
&lt;P&gt;Subscriber is synchronized and the default constraint is propagated to the subscriber. &lt;/P&gt;
&lt;P&gt;Subscriber is marked for reinit with upload first.&lt;/P&gt;
&lt;P&gt;When the subscriber is marked for re-initialisation, the schema version will be rolled back to 0. If the upload_first option is used, the merge agent retrieves schema changes from sysmergeschemachanges and tries to apply them at the subscriber before uploading the data. Therefore it attempts to create the constraint again which already exists at the subscriber.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Workaround available&lt;/U&gt;&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;To avoid data loss at the subscriber, you have to manually resolve the reason for the failure at the subscriber side:&lt;/P&gt;
&lt;P&gt;WORKAROUNDS:&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;1- Drop the DEFAULT constraint on the subscriber before applying the snapshot: &lt;BR&gt;ALTER TABLE &amp;lt;tablename&amp;gt; DROP CONSTRAINT &amp;lt;constraintname&amp;gt; &lt;BR&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Note&lt;/U&gt;&lt;/STRONG&gt;: you will have to do this after each reinit on each subscriber&lt;/P&gt;
&lt;P&gt;2- Use sp_reinitmergesubscription ... @upload_first = 'false'&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3308077" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication+Errors/">Replication Errors</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Merge/">Merge</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication/">Replication</category></item><item><title>SQL Server: SQL Server and Windows “End of Support” Dates</title><link>http://blogs.technet.com/b/claudia_silva/archive/2010/01/18/sql-server-sql-server-and-windows-end-of-support-dates.aspx</link><pubDate>Mon, 18 Jan 2010 10:00:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3306325</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3306325</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2010/01/18/sql-server-sql-server-and-windows-end-of-support-dates.aspx#comments</comments><description>&lt;P&gt;&lt;A title=http://blogs.msdn.com/psssql/archive/2010/01/08/important-sql-server-and-windows-end-of-support-dates-you-should-know-about.aspx href="http://blogs.msdn.com/psssql/archive/2010/01/08/important-sql-server-and-windows-end-of-support-dates-you-should-know-about.aspx" mce_href="http://blogs.msdn.com/psssql/archive/2010/01/08/important-sql-server-and-windows-end-of-support-dates-you-should-know-about.aspx"&gt;http://blogs.msdn.com/psssql/archive/2010/01/08/important-sql-server-and-windows-end-of-support-dates-you-should-know-about.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;taken from the blog above, this information is important for all to know:&lt;/P&gt;
&lt;H4 align=center&gt;Important SQL Server and Windows “End of Support” Dates you should know about….&lt;/H4&gt;
&lt;P align=center&gt;There are some important dates about the end of support for specific products and releases involving SQL Server and Windows that I want you to be aware of:&lt;/P&gt;
&lt;P align=center&gt;&lt;STRONG&gt;Important Upcoming SQL Server Support Dates&lt;/STRONG&gt;&lt;/P&gt;
&lt;P align=center&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P align=center&gt;1) &lt;STRONG&gt;SQL Server 2005 Service Pack 2&lt;/STRONG&gt; support ends next week &lt;STRONG&gt;January 12, 2010&lt;/STRONG&gt;. You should upgrade to SQL 2005 SP3 or SQL 2008 SP1 immediately.&lt;/P&gt;
&lt;P align=center&gt;2) &lt;STRONG&gt;SQL Server 2008 RTM&lt;/STRONG&gt; support ends on &lt;STRONG&gt;April 13, 2010.&lt;/STRONG&gt;&amp;nbsp; You should make plans to upgrade to SQL Server 2008 SP1 soon.&lt;/P&gt;
&lt;P align=center&gt;A complete list of our support policy dates can be found on the following web site:&lt;/P&gt;
&lt;P align=center&gt;&lt;A href="http://support.microsoft.com/lifecycle/" mce_href="http://support.microsoft.com/lifecycle/"&gt;http://support.microsoft.com/lifecycle/&lt;/A&gt;&lt;/P&gt;
&lt;P align=center&gt;A very good discussion about these upcoming dates was published by our release services team for SQL Server back in October of last year. This includes what choices you have for support and what actions you should consider to stay supported:&lt;/P&gt;
&lt;P align=center&gt;&lt;A href="http://blogs.msdn.com/sqlreleaseservices/archive/2009/10/08/end-of-service-pack-support-for-sql-server-2005-sp2-and-sql-server-2008-rtm.aspx" mce_href="http://blogs.msdn.com/sqlreleaseservices/archive/2009/10/08/end-of-service-pack-support-for-sql-server-2005-sp2-and-sql-server-2008-rtm.aspx"&gt;http://blogs.msdn.com/sqlreleaseservices/archive/2009/10/08/end-of-service-pack-support-for-sql-server-2005-sp2-and-sql-server-2008-rtm.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P align=center&gt;What does this “end of support” mean to you?&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV align=center&gt;You cannot call or open a case with CSS for technical support if you are running these versions after the respective dates above. There are only 2 exceptions to this: &lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV align=center&gt;You are contacting CSS to get help with an upgrade to a supported version &lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV align=center&gt;You have a Premier Support Agreement and have purchased something called a Custom Support Agreement (CSA) (contact your Technical Account Manager if you want to consider this option) &lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV align=center&gt;Microsoft won’t produce any hotfixes or security updates for these specific versions (Custom Support Agreement customers are the exception) &lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P align=center&gt;I encourage you to do a few things to stay “ahead of the game” for the end of support dates for SQL and other Microsoft products in the future:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV align=center&gt;Frequently review the &lt;A href="http://support.microsoft.com/lifecycle/" mce_href="http://support.microsoft.com/lifecycle/"&gt;support lifecycle site&lt;/A&gt;. &lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV align=center&gt;For SQL Server specific policies, keep up with the &lt;A href="http://blogs.msdn.com/sqlreleaseservices/default.aspx" mce_href="http://blogs.msdn.com/sqlreleaseservices/default.aspx"&gt;SQL Release Services Team blog&lt;/A&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV align=center&gt;Keep track of postings like these on this blog &lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P align=center&gt;&lt;STRONG&gt;Important Upcoming Windows Support Dates&lt;/STRONG&gt;&lt;/P&gt;
&lt;P align=center&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P align=center&gt;While not a SQL Server Support policy, &lt;STRONG&gt;end of support for Windows 2000 Server SP4 on July 13, 2010&lt;/STRONG&gt; could affect many SQL Server customers. Furthermore, Windows Server 2003 and 2003 R2 transition into “Extended Support”. The following article has a nice summary of these Windows Support dates:&lt;/P&gt;
&lt;P align=center&gt;&lt;A href="http://support.microsoft.com/gp/lifean36" mce_href="http://support.microsoft.com/gp/lifean36"&gt;http://support.microsoft.com/gp/lifean36&lt;/A&gt;&lt;/P&gt;
&lt;P align=center&gt;What is the difference between the “end of support” for Windows Server 2000 and “Extended Support” for Windows Server 2003? &lt;/P&gt;
&lt;P align=center&gt;The end of support for Windows Server 2000 is like our end of support above for SQL Server 2005 SP2 and SQL Server 2008 RTM. You can no longer contact CSS for support and no security updates or fixes will be available. The only exception is if you purchase a Custom Support Agreement through your Technical Account Manager.&lt;/P&gt;
&lt;P align=center&gt;The &lt;A href="http://support.microsoft.com/ph/1131#tab6" mce_href="http://support.microsoft.com/ph/1131#tab6"&gt;Windows 2000 End-of-Support Solution Center&lt;/A&gt; is a good resource to read about information on the end of support for Windows Server 2000.&lt;/P&gt;
&lt;P align=center&gt;Extended Support for Windows Server 2003 means that:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV align=center&gt;You can still contact CSS for support questions and issues &lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV align=center&gt;We will still provide security fixes for all &lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV align=center&gt;But for non-security hotfixes, you must purchase an Extended Hotfix Support Agreement which like the CSA is available to Premier customers through your Technical Account Manager &lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P align=center&gt;You may wonder how the end of support for Windows Server 2000 may affect you as SQL Server user? The biggest thing to consider is in order to be supported you need to upgrade to a new version of Windows. You could move to Windows Server 2003 but as stated that version is moving into Extended Support, so that may not be a good choice. If you still want standard hotfix support your choices are Windows Server 2008 or Windows Server 2008 R2.&lt;/P&gt;
&lt;P align=center&gt;The possible problem here you may encounter is if you are running SQL Server 2000 SP4 (the only official supported version of SQL Server 2000 which itself is in Extended Support). SQL Server 2000 SP4 is not supported on Windows Server 2008 or Windows Server 2008 R2. Therefore, if you make this jump to the new OS, you must also upgrade SQL Server to either SQL Server 2005 SP3 or SQL Server 2008 SP1.&lt;/P&gt;
&lt;P align=center&gt;One last question you may have. What happens if I stay on Windows Server 2000 SP4 after July 13, 2010 and I try to call in a case to CSS?. The answer depends on what type of problem you have:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV align=center&gt;CSS Platforms Support (which supports Windows) will not take a support case for Windows Server 2000 SP4 after July 13, 2010 unless you are trying to upgrade to a supported Windows OS (or have a CSA) &lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV align=center&gt;But let’s say you are running SQL Server 2000 SP4 which is still supported and have a SQL Server issue. CSS SQL Support would still take your case for an issue directly related to SQL Server. However, if when working the case, CSS determines the problem is specific to Windows Server 2000 SP4 and not a SQL Server issue (for example some type of disk I/O issue), then the support of the issue would stop as there is no support for that version of Windows after July 13, 2010. &lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P align=center&gt;&lt;STRONG&gt;&lt;U&gt;Summary&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P align=center&gt;Here is a summary of actions you should consider:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV align=center&gt;If you are running SQL Server 2005 SP2, you should upgrade immediately to SQL Server 2005 SP3 or SQL Server 2008 SP1 (Next week January 12, 2010 is the cutoff). &lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV align=center&gt;If you are running SQL Server 2008 RTM, you should upgrade to SQL Server 2008 SP1 very soon (before April 2010) &lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV align=center&gt;If you are running Windows Server 2000 SP4, you should make plans now to upgrade to Windows Server 2003, Windows Server 2008, or Windows Server 2008 R2 (July 13, 2010 is the cutoff). Your Windows upgrade choice may also require the need to upgrade SQL Server. &lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P align=center&gt;Bob Ward &lt;BR&gt;Microsoft&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3306325" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/SQL+Engine/">SQL Engine</category></item><item><title>Replication: Access Permission Error when generating Dynamic Snaphot</title><link>http://blogs.technet.com/b/claudia_silva/archive/2010/01/07/replication-access-permission-error-when-generating-dynamic-snaphot.aspx</link><pubDate>Thu, 07 Jan 2010 12:15:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3304199</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3304199</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2010/01/07/replication-access-permission-error-when-generating-dynamic-snaphot.aspx#comments</comments><description>&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Problem&lt;/STRONG&gt;&lt;/U&gt;:&lt;/P&gt;
&lt;P&gt;My snapshot agent fails to create a dynamic snapshot&amp;nbsp; for a subscriber in my Merge replication environment. Each subscriber is supposed to receive the snapshot based on their login account. Each account is explicitly added to a group which is defined in the PAL .However the agent fails with the below error. &lt;/P&gt;
&lt;P&gt;The login 'Domain\CLSILVA.Claudia' does not have access permission on publication 'TestPublication' because it is not in the publication access list. &lt;BR&gt;&lt;/P&gt;
&lt;P&gt;If I explicitly add this account as a SQL login and give it sys admin permissions, the snapshot agent works.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Cause/Workaround&lt;/U&gt;&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;This issue occurs when the login account was given permission via group membership0 &lt;BR&gt;Sp_MSreplcheck_pull tries access a system table in which contains records for each login account and does not have any information for the account accessed via group membership. &lt;BR&gt;&lt;/P&gt;
&lt;P&gt;Workaround was to explicitly add the login on the publisher. &lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3304199" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication+Errors/">Replication Errors</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Merge/">Merge</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication/">Replication</category></item><item><title>Replication: Transactional Replication Over WAN</title><link>http://blogs.technet.com/b/claudia_silva/archive/2010/01/04/replication-transactional-replication-over-wan.aspx</link><pubDate>Mon, 04 Jan 2010 13:17:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3303549</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3303549</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2010/01/04/replication-transactional-replication-over-wan.aspx#comments</comments><description>&lt;P&gt;A lot of users have wondered about the performance latency transactional replication suffers over WAN.&lt;/P&gt;
&lt;P&gt;After analyzing / discussing this within the teams, here are the main points one should take into consideration when deciding / testing this type of implementation:&lt;/P&gt;
&lt;P&gt;Should you notice performance degradation when testing your transactional replication over WAN, please verify the following:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;1. Where is the latency occurring? Could it be an issue on the publisher / subscriber (example:blocking)&lt;/P&gt;
&lt;P&gt;2. Verify that the @status of the articles published have the value of 16 or 24. Please see previous post in regards to this in order to understand the reason for performance benefit. &lt;/P&gt;
&lt;P&gt;3. Disable offload TCP Checksum&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A title=http://msdn.microsoft.com/en-us/library/aa938424.aspx href="http://msdn.microsoft.com/en-us/library/aa938424.aspx" mce_href="http://msdn.microsoft.com/en-us/library/aa938424.aspx"&gt;http://msdn.microsoft.com/en-us/library/aa938424.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;4. Disable TCP Chimney&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A title=http://blogs.msdn.com/psssql/archive/2008/10/01/windows-scalable-networking-pack-possible-performance-and-concurrency-impacts-to-sql-server-workloads.aspx href="http://blogs.msdn.com/psssql/archive/2008/10/01/windows-scalable-networking-pack-possible-performance-and-concurrency-impacts-to-sql-server-workloads.aspx" mce_href="http://blogs.msdn.com/psssql/archive/2008/10/01/windows-scalable-networking-pack-possible-performance-and-concurrency-impacts-to-sql-server-workloads.aspx"&gt;http://blogs.msdn.com/psssql/archive/2008/10/01/windows-scalable-networking-pack-possible-performance-and-concurrency-impacts-to-sql-server-workloads.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;5. Use a PULL subscription instead of a PUSH&lt;/P&gt;
&lt;P&gt;6. Should the above 5 options not help in the performance, I would highly recommend the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Geo-Replication Performance Gains with Microsoft SQL Server 2008 Running on Windows Server 2008&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A title=http://technet.microsoft.com/en-us/library/dd263442.aspx href="http://technet.microsoft.com/en-us/library/dd263442.aspx" mce_href="http://technet.microsoft.com/en-us/library/dd263442.aspx"&gt;http://technet.microsoft.com/en-us/library/dd263442.aspx&lt;/A&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3303549" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Peformance/">Peformance</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Transactional/">Transactional</category><category domain="http://blogs.technet.com/b/claudia_silva/archive/tags/Replication/">Replication</category></item><item><title>Happy New Year Readers</title><link>http://blogs.technet.com/b/claudia_silva/archive/2010/01/04/happy-new-year-readers.aspx</link><pubDate>Mon, 04 Jan 2010 09:26:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3303507</guid><dc:creator>clsilva</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/claudia_silva/rsscomments.aspx?WeblogPostID=3303507</wfw:commentRss><comments>http://blogs.technet.com/b/claudia_silva/archive/2010/01/04/happy-new-year-readers.aspx#comments</comments><description>&lt;p&gt;Happy New Year Readers!&lt;/p&gt;  &lt;p&gt;May the best moments of 2009, be the worst of 2010 are my wishes to you all :)&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3303507" width="1" height="1"&gt;</description></item></channel></rss>