<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>SQL's Corner</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/claudia_silva/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/claudia_silva/feed.xml</link>
    <description />
    <lastBuildDate>Tue, 16 Apr 2019 05:59:28 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Replication: Stream_Blob_Columns enabled by default when Filestream is enabled</title>
      <link>https://docs.microsoft.com/archive/blogs/claudia_silva/replication-stream_blob_columns-enabled-by-default-when-filestream-is-enabled</link>
      <pubDate>Tue, 10 Jan 2012 02:11:43 GMT</pubDate>
      <dc:creator><![CDATA[clsilva]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/claudia_silva/2012/01/10/replication-stream_blob_columns-enabled-by-default-when-filestream-is-enabled/</guid>
      <description><![CDATA[https://support.microsoft.com/kb/2647118]]></description>
      <content:encoded><![CDATA[<p><span style="font-size: small;"><a href="https://support.microsoft.com/kb/2647118">https://support.microsoft.com/kb/2647118</a></span></p>]]></content:encoded>
    </item>
    <item>
      <title>REPLICATION: Oracle publication triggers sends data for non-published columns when replicating with Microsoft SQL Server</title>
      <link>https://docs.microsoft.com/archive/blogs/claudia_silva/replication-oracle-publication-triggers-sends-data-for-non-published-columns-when-replicating-with-microsoft-sql-server</link>
      <pubDate>Tue, 10 Jan 2012 01:20:18 GMT</pubDate>
      <dc:creator><![CDATA[clsilva]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/claudia_silva/2012/01/10/replication-oracle-publication-triggers-sends-data-for-non-published-columns-when-replicating-with-microsoft-sql-server/</guid>
      <description><![CDATA[https://support.microsoft.com/kb/2310152
&nbsp;]]></description>
      <content:encoded><![CDATA[<p><span style="font-size: small;"><a href="https://support.microsoft.com/kb/2310152">https://support.microsoft.com/kb/2310152</a></span></p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>REPLICATION: Load Test Platform for Merge Replication</title>
      <link>https://docs.microsoft.com/archive/blogs/claudia_silva/replication-load-test-platform-for-merge-replication</link>
      <pubDate>Thu, 15 Dec 2011 02:42:29 GMT</pubDate>
      <dc:creator><![CDATA[clsilva]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/claudia_silva/2011/12/15/replication-load-test-platform-for-merge-replication/</guid>
      <description><![CDATA[Zen4Sync is all about providing an Orchestration and Load Test platform able to validate any SQL...]]></description>
      <content:encoded><![CDATA[<p><b>Zen4Sync</b> is all about providing an <b>Orchestration and Load Test platform</b> able to validate any <b>SQL Server Merge Replication</b> based Architecture.</p>
<p><a href="https://zen4sync.codeplex.com/">https://zen4sync.codeplex.com/</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Replication: Watch out for STREAM_BLOB_COLUMNS when setting up replication on your SQL 2008 + server</title>
      <link>https://docs.microsoft.com/archive/blogs/claudia_silva/replication-watch-out-for-stream_blob_columns-when-setting-up-replication-on-your-sql-2008-server</link>
      <pubDate>Mon, 31 Oct 2011 03:19:00 GMT</pubDate>
      <dc:creator><![CDATA[clsilva]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/claudia_silva/2011/10/31/replication-watch-out-for-stream_blob_columns-when-setting-up-replication-on-your-sql-2008-server/</guid>
      <description><![CDATA[When setting up merge replication on your SQL 2008 + server, please be careful with the parameter...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size: small;">When setting up merge replication on your SQL 2008 + server, please be careful with the parameter STREAM_BLOB_COLUMN.</span></p>
<p><span style="font-size: small;">By default, this option is set to FALSE, as explained here in BOL:</span></p>
<p><span style="color: #800000; font-size: small;"><strong>&nbsp;[ @stream_blob_columns= ] 'stream_blob_columns'</strong></span><br /><span style="color: #800000; font-size: small;">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. </span></p>
<p><span style="font-size: small;">However one should be careful with the NOTE information (see below):</span></p>
<p><span style="font-size: small;">When filestream is enabled - @schema_option = 0x000000010C034FD1 (<span style="color: #800000;">100000000 --&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</span>) - the stream_blob_column option is also enabled and a warning is generated:</span></p>
<p><span style="font-size: small;"><strong><span style="color: #ff0000;">Warning: To allow replication of FILESTREAM data to perform optimally and reduce memory utilization, the 'stream_blob_columns' property has been set to 'true'.&nbsp; To force FILESTREAM table articles to not use blob streaming, use sp_changemergearticle to set 'stream_blob_columns' to 'false'.</span></strong></span></p>
<p><span style="font-size: small;">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.</span></p>
<div class="alert">
<table style="width: 658px; height: 101px;">
<tbody>
<tr><th><span style="font-size: small;"><!--src=[../icons/alert_caution.gif]--><img alt="Important note" src="https://i.msdn.microsoft.com/ms174329.alert_caution(en-us,SQL.105).gif" /><strong>Important</strong></span></th></tr>
<tr>
<td>
<p><span style="font-size: small;">Enabling this memory optimization may reduce the performance of the Merge Agent during </span></p>
<p><span style="font-size: small;">synchronization. </span><span style="font-size: small;">This option should only be used when replicating columns that contain </span></p>
<p><span style="font-size: small;">megabytes of data.</span></p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="alert">
<table>
<tbody>
<tr><th><span style="font-size: small;"><!--src=[../icons/alert_note.gif]--><img alt="Note" src="https://i.msdn.microsoft.com/ms174329.alert_note(en-us,SQL.105).gif" /><strong>Note</strong></span></th></tr>
<tr>
<td>
<p><span style="font-size: small;">Certain merge replication functionalities, such as logical records, can still prevent the stream </span></p>
<p><span style="font-size: small;">optimization from being used when replicating binary large objects even with </span></p>
<p><span style="font-size: small;">stream_blob_columns set to true. </span></p>
</td>
</tr>
</tbody>
</table>
</div>]]></content:encoded>
    </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>https://docs.microsoft.com/archive/blogs/claudia_silva/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</link>
      <pubDate>Thu, 20 Oct 2011 02:01:00 GMT</pubDate>
      <dc:creator><![CDATA[clsilva]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/claudia_silva/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/</guid>
      <description><![CDATA[Problem:
If sql_variant column includes a value with new datetime type, the value is replicated as...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: arial,helvetica,sans-serif; font-size: small; text-decoration: underline;"><strong>Problem:</strong></span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">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).</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">After the snapshot has been applied, if you execute the command to verify the property of the sql_variant column: </span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;"><span style="color: #0000ff;" color="#0000ff"><span style="color: #0000ff;" color="#0000ff"><span style="color: #0000ff;" color="#0000ff"><span face="Arial" size="1">SELECT</span></span></span></span><span size="1"><span face="Arial"> <span style="color: #ff00ff;" color="#ff00ff"><span style="color: #ff00ff;" color="#ff00ff"><span style="color: #ff00ff;" color="#ff00ff">SQL_VARIANT_PROPERTY</span></span></span><span style="color: #808080;" color="#808080"><span style="color: #808080;" color="#808080"><span style="color: #808080;" color="#808080">(column_name</span></span></span><span style="color: #808080;" color="#808080"><span style="color: #808080;" color="#808080"><span style="color: #808080;" color="#808080">,</span></span></span><span style="color: #ff0000;" color="#ff0000"><span style="color: #ff0000;" color="#ff0000"><span style="color: #ff0000;" color="#ff0000">'BaseType'</span></span></span><span style="color: #808080;" color="#808080"><span style="color: #808080;" color="#808080"><span style="color: #808080;" color="#808080">),</span></span></span> <span style="color: #808080;" color="#808080"><span style="color: #808080;" color="#808080"><span style="color: #808080;" color="#808080">*</span></span></span> <span style="color: #0000ff;" color="#0000ff"><span style="color: #0000ff;" color="#0000ff"><span style="color: #0000ff;" color="#0000ff">FROM</span></span></span> <span style="color: #008080;" color="#008080">table_name</span></span></span></span></p>
<p><span style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: small;"><span size="1"><span face="Arial"><span color="#008080">You will see that on the Publisher it shows as (example) DATE while on the subscriber its NVARCHAR</span></span></span></span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small; text-decoration: underline;"><strong>Cause:</strong></span></p>
<p>&nbsp;<span style="font-family: arial,helvetica,sans-serif; font-size: small;">Its an issue that invovles both the snapshot agent and SNAC10. </span></p>
<p>&nbsp;<span style="font-family: arial,helvetica,sans-serif; font-size: small; text-decoration: underline;"><strong>Solution/Workaround</strong></span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">&nbsp;THE </span><span style="font-family: arial,helvetica,sans-serif; font-size: small;">WORKAROUND THAT WAS POSTED HERE BEFORE HAS BEEN REMOVED AS IT HAD OTHER IMPLICATIONS AND IS NOT RECOMMENDED</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">&nbsp;Microsoft&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&nbsp;(within the app&nbsp;code) to&nbsp;work around the&nbsp;basetype difference.</span><span style="font-family: arial,helvetica,sans-serif; font-size: small;">&nbsp;</span></p>
<p><br />&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Replication: XML data loss occurs when Merge agent fails with Violation of Foreign Key</title>
      <link>https://docs.microsoft.com/archive/blogs/claudia_silva/replication-xml-data-loss-occurs-when-merge-agent-fails-with-violation-of-foreign-key</link>
      <pubDate>Wed, 28 Sep 2011 01:04:43 GMT</pubDate>
      <dc:creator><![CDATA[clsilva]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/claudia_silva/2011/09/28/replication-xml-data-loss-occurs-when-merge-agent-fails-with-violation-of-foreign-key/</guid>
      <description><![CDATA[Problem:
Consider the following scenario:

You use a merge publication operation to replicate XML...]]></description>
      <content:encoded><![CDATA[<p><strong>Problem</strong>:</p>
<p><span style="color: blue; font-family: 'Calibri','sans-serif'; font-size: 10pt;">Consider the following scenario:</span></p>
<ul>
<li>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.</li>
<li>A foreign key violation error occurs in the same merge replication batch.</li>
</ul>
<p><span style="color: blue; font-family: 'Calibri','sans-serif'; font-size: 10pt;">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:</span></p>
<div class="indent">
<div class="kb_errormsgbody">
<div class="kb_errorcontent">
<div class="errormsg">The merge process could not replicate one or more Insert statements to the Publisher. A Stored Procedure failed to execute.</div>
</div>
</div>
</div>
<p><strong>Cause</strong>:</p>
<p>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.</p>
<p><strong>Solution</strong>:</p>
<p><a href="https://support.microsoft.com/kb/2582285">https://support.microsoft.com/kb/2582285</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Replication: What is the difference between Database Compatibility Mode and Publication Compatibility Mode</title>
      <link>https://docs.microsoft.com/archive/blogs/claudia_silva/replication-what-is-the-difference-between-database-compatibility-mode-and-publication-compatibility-mode</link>
      <pubDate>Wed, 28 Sep 2011 01:00:21 GMT</pubDate>
      <dc:creator><![CDATA[clsilva]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/claudia_silva/2011/09/28/replication-what-is-the-difference-between-database-compatibility-mode-and-publication-compatibility-mode/</guid>
      <description><![CDATA[Database Compatibility Mode:
Compatibility level affects behaviors only for the specified database,...]]></description>
      <content:encoded><![CDATA[<p><strong>Database Compatibility Mode</strong>:</p>
<p>Compatibility level affects behaviors only for the <b><span style="text-decoration: underline;">specified database</span></b>, 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<br />differences in the behaviors that are controlled by the relevant compatibility-level setting.</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />In this link, you see some examples of how the database compt mode alters the way SQL &ldquo;treats&rdquo; the database, for example:</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />With a DB COMPT LEVEL of 90 --&gt; SET XACT_ABORT OFF is not allowed inside a trigger.</p>
<p><a href="https://msdn.microsoft.com/en-us/library/bb510680.aspx">https://msdn.microsoft.com/en-us/library/bb510680.aspx</a></p>
<p>&nbsp;</p>
<p><strong>Publication Compatibility Mode</strong>:</p>
<p>Merge replication uses the publication compatibility level to determine which features can be used by <b><span style="text-decoration: underline;">publications in a given database</span></b>. The values range from 80RTM (SQL Server 2000 that has no service packs installed) to 100RTM for SQL Server 2008.</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />Examples of how the publication compatibility level affects the publication:</p>
<p>The following features require a compatibility level of 90RTM or higher:</p>
<ul>
<li>Logical<br />records</li>
<li>Subscriber<br />upload options.</li>
<li>Nonoverlapping<br />partitions</li>
<li>Business<br />logic handlers</li>
<li>Schema<br />changes that use ALTER &lt;OBJECT&gt; statements</li>
</ul>
<p><a href="https://msdn.microsoft.com/en-us/library/ms143241.aspx">https://msdn.microsoft.com/en-us/library/ms143241.aspx</a></p>
<p>So basically:</p>
<p>DB compatibility mode affects the DATABASE (and what you can do using this database)</p>
<p>Publication Compatibility mode affects the PUBLICATION (and what you can do in replication)</p>]]></content:encoded>
    </item>
    <item>
      <title>Replication: Snapshot agent execution causes system Available Memory to drop to 0 and possibly fail</title>
      <link>https://docs.microsoft.com/archive/blogs/claudia_silva/replication-snapshot-agent-execution-causes-system-available-memory-to-drop-to-0-and-possibly-fail</link>
      <pubDate>Wed, 28 Sep 2011 00:53:33 GMT</pubDate>
      <dc:creator><![CDATA[clsilva]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/claudia_silva/2011/09/28/replication-snapshot-agent-execution-causes-system-available-memory-to-drop-to-0-and-possibly-fail/</guid>
      <description><![CDATA[Problem:
While running the snapshot agent, the available memory of the server goes down to 0 and...]]></description>
      <content:encoded><![CDATA[<p><strong>Problem</strong>:</p>
<p>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.</p>
<p><strong>Cause</strong>:</p>
<p>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.</p>
<p><strong>Solution</strong>:</p>
<p><a href="https://support.microsoft.com/kb/2582285">https://support.microsoft.com/kb/2582285</a></p>]]></content:encoded>
    </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>https://docs.microsoft.com/archive/blogs/claudia_silva/replication-error-you-can-only-specify-the-readpast-lock-in-the-read-committed-or-repeatable-read-isolation-levels-generated-when-altering-published-table-columns</link>
      <pubDate>Mon, 08 Aug 2011 07:42:00 GMT</pubDate>
      <dc:creator><![CDATA[clsilva]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/claudia_silva/2011/08/08/replication-error-you-can-only-specify-the-readpast-lock-in-the-read-committed-or-repeatable-read-isolation-levels-generated-when-altering-published-table-columns/</guid>
      <description><![CDATA[Problem:
&nbsp;
Error "You can only specify the READPAST lock in the READ COMMITTED or REPEATABLE...]]></description>
      <content:encoded><![CDATA[<p><strong><span style="text-decoration: underline;">Problem</span>:</strong></p>
<p>&nbsp;</p>
<p>Error "<span style="color: #ff0000;"><em>You can only specify the READPAST lock in the READ COMMITTED or REPEATABLE READ isolation levels</em></span>" generated when altering published table columns in a transactional replication.</p>
<p></p>
<p><span face="Calibri"><span style="text-decoration: underline;"><strong>Cause</strong></span>:</span></p>
<p><span face="Calibri"></span>&nbsp;</p>
<p><span face="Calibri">Unable to alter columns on Published database if using any isolation level besides the <span style="color: #0000ff;" color="#0000ff">READ</span> <span style="color: #0000ff;" color="#0000ff"><span style="color: #0000ff;" color="#0000ff"><span style="color: #0000ff;" color="#0000ff">COMMITTED <span style="color: #000000;">or</span> REPEATABLE READ</span></span></span>&nbsp;isolation level. </span></p>
<p><span face="Calibri"><span face="Calibri">READPAST hint is not compatible with READ UNCOMMITTED isolation level, but only with READ COMMITTED and REPEATABLE READ isolation levels. </span></span></p>
<p>READPAST hint is used in internal stored procedures in order to resolve issues within replication.</p>
<p></p>
<p><span face="Calibri"><span style="text-decoration: underline;"><strong>Solution/Workaround</strong></span>:</span></p>
<p><span face="Calibri"></span>&nbsp;</p>
<p>Other options (other isolations levels) that reduce locking:</p>
<p>In SQL Server, you can also minimize locking contention while protecting transactions from dirty reads of uncommitted data modifications<br />using either:</p>
<ul>
<li>The READ COMMITTED isolation level with the READ_COMMITTED_SNAPSHOT database option set to ON.</li>
<li>The SNAPSHOT isolation level.</li>
</ul>
<p><a href="https://msdn.microsoft.com/en-us/library/ms173763.aspx">https://msdn.microsoft.com/en-us/library/ms173763.aspx</a></p>
<p>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.</p>
<p></p>]]></content:encoded>
    </item>
    <item>
      <title>Replication: Merge Performance Tip</title>
      <link>https://docs.microsoft.com/archive/blogs/claudia_silva/replication-merge-performance-tip</link>
      <pubDate>Mon, 08 Aug 2011 07:19:39 GMT</pubDate>
      <dc:creator><![CDATA[clsilva]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/claudia_silva/2011/08/08/replication-merge-performance-tip/</guid>
      <description><![CDATA[Problem:

Publisher: SQL Server 2008
Subscriber: SQL Server Compact 3.5
Merge...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size: x-small;"><span style="text-decoration: underline;"><strong>Problem</strong></span><strong>:</strong></span></p>
<p><span style="font-size: x-small;"><strong></strong></span></p>
<p><span style="font-size: x-small;">Publisher: SQL Server 2008</span></p>
<p><span style="font-size: x-small;">Subscriber: SQL Server Compact 3.5</span></p>
<p><span style="font-size: x-small;">Merge Replication</span></p>
<p><span style="font-size: x-small;">Performance issue when using keep_partition_changes or precomputed partitions</span></p>
<p>&nbsp;</p>
<p><span style="font-size: x-small;"><span style="text-decoration: underline;"><strong>Cause</strong></span><strong>:</strong></span></p>
<p>&nbsp;</p>
<p><span style="font-size: x-small;">There could be&nbsp;many causes to this and analysis would have to be done however sometimes it may be due to missing indexes.</span></p>
<p><span style="font-size: x-small; text-decoration: underline;"><strong></strong></span>&nbsp;</p>
<p><span style="font-size: x-small;"><span style="text-decoration: underline;"><strong>Solution/Workaround</strong></span><strong>:</strong></span></p>
<p><span style="font-size: x-small;"><strong></strong></span>&nbsp;</p>
<p><span style="font-size: x-small;">In a test environment, use the following indexes and verify performance:</span></p>
<p><span style="font-size: x-small;"></span></p>
<p><span style="font-size: x-small;">CREATE NONCLUSTERED INDEX [&lt;Name of Missing </span><span style="font-size: x-small;">Index, sysname,&gt;]</span></p>
<p><span style="font-size: x-small;"></span></p>
<p><span style="font-size: x-small;">ON [dbo].[MSmerge_current_partition_mappings] ([partition_id])</span></p>
<p><span style="font-size: x-small;"></span></p>
<p><span style="font-size: x-small;">INCLUDE ([rowguid])</span></p>
<p><span style="font-size: x-small;"></span></p>
<p><span style="font-size: x-small;">GO</span></p>
<p>&nbsp;</p>
<p><span style="font-size: x-small;">//--//</span></p>
<p><span style="font-size: x-small;">-- changed and new indexes on system tables</span></p>
<p><span style="font-size: x-small;">DROP INDEX nc5MSmerge_contents ON </span><span style="font-size: x-small;">MSmerge_contents</span></p>
<p><span style="font-size: x-small;">CREATE NONCLUSTERED INDEX [NCL_marker] ON [dbo].[MSmerge_contents] </span><span style="font-size: x-small;">([marker], rowguid)</span></p>
<p><span style="font-size: x-small;">CREATE NONCLUSTERED INDEX </span><span style="font-size: x-small;">[NCL_partition_id_rowguid] ON [dbo].MSmerge_current_partition_mappings </span><span style="font-size: x-small;">(partition_id, [rowguid])</span></p>
<p>&nbsp;</p>
<p><span style="font-size: x-small;">-- update statistics on system tables</span></p>
<p><span style="font-size: x-small;">update statistics </span><span style="font-size: x-small;">MSmerge_current_partition_mappings with fullscan</span></p>
<p><span style="font-size: x-small;">update statistics MSmerge_contents with </span><span style="font-size: x-small;">fullscan</span></p>
<p><span style="font-size: x-small;">update statistics MSmerge_partition_groups with </span><span style="font-size: x-small;">fullscan</span></p>
<p>&nbsp;</p>
<p><span style="font-size: x-small;">-- update statistics on all tables involved in </span><span style="font-size: x-small;">join filters</span></p>
<p><span style="font-size: x-small;">update statistics &lt;table name&gt; with </span><span style="font-size: x-small;">fullscan</span></p>
<p><span style="font-size: x-small;"></span>&nbsp;</p>
<p><span style="font-size: x-small;"></span>&nbsp;</p>
<p><span style="font-size: x-small;"></span></p>
<p><span style="font-size: x-small;"></span></p>
<p><span style="font-size: x-small;"><strong></strong></span></p>]]></content:encoded>
    </item>
  </channel>
</rss>