<?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>Cannot insert an explicit value into a timestamp column.</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/cannot_insert_an_explicit_value_into_a_timestamp_column/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/cannot_insert_an_explicit_value_into_a_timestamp_column/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 04:09:29 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Cannot insert an explicit value into a timestamp column. Use INSERT with a column list to exclude the timestamp column, or insert a DEFAULT into the timestamp column.</title>
      <link>https://docs.microsoft.com/archive/blogs/cannot_insert_an_explicit_value_into_a_timestamp_column/cannot-insert-an-explicit-value-into-a-timestamp-column-use-insert-with-a-column-list-to-exclude-the-timestamp-column-or-insert-a-default-into-the-timestamp-column</link>
      <pubDate>Mon, 16 Feb 2015 14:33:00 GMT</pubDate>
      <dc:creator><![CDATA[Vivek Janakiraman]]></dc:creator>
      <guid
        isPermaLink="false">https://qa.msdn.wdslab.com/cannot_insert_an_explicit_value_into_a_timestamp_column/2015/02/16/cannot-insert-an-explicit-value-into-a-timestamp-column-use-insert-with-a-column-list-to-exclude-the-timestamp-column-or-insert-a-default-into-the-timestamp-colum</guid>
      <description><![CDATA[I came across an interesting case which took a lot of efforts and understanding SQL server stored...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: courier new,courier;"><span style="font-size: small;">I came across an interesting case which took a lot of efforts and understanding SQL server stored procedure code in replication space to nail down. Therefore, I would like to share the same. Hopefully it will help some of you. </span></span></p>
<p><span style="font-family: courier new,courier;"><span style="font-size: small;">=&gt;&nbsp;</span><span style="font-size: small;">Created a publication using &ldquo;initialize </span><span style="font-size: small;">with backup&rdquo; and got the below error when the subscriber was created.</span>&nbsp;</span></p>
<p><span style="font-family: courier new,courier; font-size: small;">Cannot insert an explicit value into a</span><br /><span style="font-family: courier new,courier; font-size: small;">timestamp column. Use INSERT with a column list to exclude the timestamp</span><br /><span style="font-family: courier new,courier; font-size: small;">column, or insert a DEFAULT into the timestamp column. (Source: MSSQLServer,</span><br /><span style="font-family: courier new,courier;"><span style="font-size: small;">Error number: 273)<br /><br />=&gt;&nbsp;</span><span style="font-size: small;">It seems like we get the above error </span><span style="font-size: small;">whenever the table in the publication has a timestamp column in the </span><span style="font-size: small;">primary key. Example below,</span>&nbsp;</span></p>
<p><span style="font-family: courier new,courier; background-color: #ffff00;"><span style="font-size: small;">CREATE TABLE [dbo].[Trick](</span><span style="font-size: small;"><br />[Sno] [int] NOT NULL,[Sname] [varchar](50)</span></span><br /><span style="font-family: courier new,courier; background-color: #ffff00;"><span style="font-size: small;">NULL, [timet] [timestamp] NOT NULL,</span><span style="font-size: small;">CONSTRAINT </span><span style="font-size: small;">[PK_Trick] PRIMARY KEY CLUSTERED </span><span style="font-size: small;">([Sno]</span><span style="font-size: small;">ASC,[timet] ASC)</span><span style="font-size: small;">)</span><span style="font-size: small;">ON [PRIMARY]&nbsp;</span>&nbsp;</span></p>
<p><span style="font-family: courier new,courier;">=&gt; Create the publisher and subscriber databases,</span><br /><br /><span style="font-family: courier new,courier; background-color: #ffff00;">Create database Test_Pub;</span><br /><span style="font-family: courier new,courier; background-color: #ffff00;">Create database Test_Sub;</span></p>
<p><span style="font-family: courier new,courier;">=&gt; Create below tables in both database. I am not following the actual process for &ldquo;initialize <span style="font-size: small;">with backup&rdquo;, instead creating the required objects on both side and will not select the option to apply snapshot later, as I will not have data changes.</span></span></p>
<p><span style="background-color: #ffff00;"><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CREATE </span><span style="font-family: courier new,courier;">TABLE [dbo].[Trick1](</span></span><br /><span style="font-family: courier new,courier; background-color: #ffff00;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [Sno] [int] NOT NULL,</span><br /><span style="font-family: courier new,courier; background-color: #ffff00;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [Sname] [varchar](50) NULL,</span><br /><span style="background-color: #ffff00;"><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [timet] [timestamp] NOT NULL) ON</span><span style="font-family: courier new,courier;">[PRIMARY]&nbsp;</span></span></p>
<p><span style="background-color: #ffff00;"><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ALTER </span><span style="font-family: courier new,courier;">TABLE dbo.Trick1 ADD CONSTRAINT PK_Trick1 PRIMARY <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-family: courier new,courier;">KEY CLUSTERED ( Sno) ON&nbsp;</span><span style="font-family: courier new,courier;">[PRIMARY]</span></span><br /><span style="font-family: courier new,courier; background-color: #ffff00;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GO</span></p>
<p><span style="font-family: courier new,courier;">=&gt; Create a transactional read-only publication and a </span><span style="font-family: courier new,courier;">subscriber, make sure you dont enable snapshot.</span></p>
<p><span style="font-family: courier new,courier;">=&gt; We will get below error if you check the replication </span><span style="font-family: courier new,courier;">monitor.</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cannot </span><span style="font-family: courier new,courier;">insert an explicit value into a timestamp column. Use <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-family: courier new,courier;">INSERT with a column list </span><span style="font-family: courier new,courier;">to exclude the timestamp column, or <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-family: courier new,courier;">insert a DEFAULT&nbsp;into the timestamp column. <br /></span><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (Source: MSSQLServer, Error number: 273)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<p><span style="font-family: courier new,courier;">=&gt; Verbose logging in distribution agent. -Output </span><span style="font-family: courier new,courier;">C:\ReplOutput.txt -OutputVerboseLevel 3</span></p>
<p><span style="font-family: courier new,courier;">=&gt; Error occurs while creating below stored procedure.</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2015-01-21 23:57:35.696 OLE DB</span><br /><span style="font-family: courier new,courier;"><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Subscriber '&lt;SQL instance&gt;': if object_id(N'dbo.MSreplication_objects')</span><br /><span style="font-family: courier new,courier;"><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>is not null</span><br /><span style="font-family: courier new,courier;"><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br /></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; delete from dbo.MSreplication_objects</span><br /><span style="font-family: courier new,courier;"><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>where object_name = N'sp_MSins_dboTrick1'</span><br /><span style="font-family: courier new,courier;"><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>2015-01-21 23:57:35.696 OLE DB Subscriber '&lt;SQL instance Name&gt;': create</span><br /><span style="font-family: courier new,courier;"><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>procedure [sp_MSins_dboTrick1]&nbsp; @c1 int, @c2 </span><span style="font-family: courier new,courier;">varchar(50),<br /></span><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @c3 binary(8)</span><br /><span style="font-family: courier new,courier;"><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>as</span><br /><span style="font-family: courier new,courier;"><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&nbsp;&nbsp;begin&nbsp;&nbsp;<br /></span><span style="font-family: courier new,courier;"><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&nbsp;&nbsp; insert </span><span style="font-family: courier new,courier;">into [dbo].[Trick1](</span><span style="font-family: courier new,courier;">[Sno],[Sname], </span><span style="font-family: courier new,courier;">[timet]) values <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (</span><span style="font-family: courier new,courier;">@c1,&nbsp; @c2,&nbsp; @c3)<br /></span><span style="font-family: courier new,courier;"><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&nbsp; end<br /></span><span style="font-family: courier new,courier;"><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>2015-01-21 23:57:35.711 Agent</span><br /><span style="font-family: courier new,courier;"><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>message code 273. Cannot insert an explicit value into a <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; timestamp column. Use&nbsp;</span><span style="font-family: courier new,courier;">INSERT with a column list to exclude <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the timestamp column, or insert a DEFAULT </span><span style="font-family: courier new,courier;">into the timestamp <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-family: courier new,courier;">column.</span><br /><br /><span style="font-family: courier new,courier;"><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>2015-01-21 23:57:35.711 ErrorId = 25, SourceTypeId = 0</span><br /><span style="font-family: courier new,courier;"><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>ErrorCode = '273'</span></p>
<p><span style="font-family: courier new,courier;"><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>ErrorText = <span style="background-color: #ffff00;">'Cannot insert an </span></span><span style="font-family: courier new,courier; background-color: #ffff00;">explicit value into a timestamp <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; column. Use INSERT with a column list to </span><span style="font-family: courier new,courier;"><span style="background-color: #ffff00;">exclude the timestamp </span><br /><span style="background-color: #ffff00;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; column, or insert a DEFAULT into the timestamp column.</span>'</span></p>
<p><span style="font-family: courier new,courier;">=&gt; Not sure why we are seeing insert for @c3. We had&nbsp;</span><span style="font-family: courier new,courier;">"Convert TIMESTAMP to BINARY" set to false.</span></p>
<p><span style="font-family: courier new,courier;">=&gt; Recreate the publisher and check the article properties&nbsp;</span><span style="font-family: courier new,courier;">while selecting the articles and ensure "Convert TIMESTAMP to BINARY" </span><span style="font-family: courier new,courier;">is set to false.</span></p>
<p><span style="font-family: courier new,courier;">=&gt; Check </span><span style="font-family: courier new,courier;">the article properties again. For article Trick "Convert TIMESTAMP to </span><span style="font-family: courier new,courier;">BINARY" is set to true and for article trick1 "Convert TIMESTAMP to </span><span style="font-family: courier new,courier;">BINARY" is set to false.</span></p>
<p><span style="font-family: courier new,courier;">=&gt; If (Convert TIMESTAMP to BINARY -&gt; False)</span><br /><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp; {</span><br /><br /><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Source and </span><span style="font-family: courier new,courier;">destination column will be timestamp<span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><br /></span><span style="font-family: courier new,courier;"><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>@schema_Options -&gt; 8 </span><span style="font-family: courier new,courier;">will be set for "Replicate timestamp columns. <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If not set,&nbsp;</span><span style="font-family: courier new,courier;">timestamp </span><span style="font-family: courier new,courier;">columns are replicated as&nbsp;binary."<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(Refer <a href="https://msdn.microsoft.com/en-">https://msdn.microsoft.com/en-</a></span><span style="font-family: courier new,courier;"><a href="https://msdn.microsoft.com/en-">us/library/ms173857.aspx</a>)</span><br /><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp; }</span></p>
<p><span style="font-family: courier new,courier;">=&gt; The insert stored procedure will have a &ldquo;default&rdquo; for </span><span style="font-family: courier new,courier;">the timestamp column, Example stored procedure below,</span></p>
<p><span style="font-family: courier new,courier;">create procedure </span><span style="font-family: courier new,courier;">[dbo].[sp_MSins_dboTrick] </span><span style="font-family: courier new,courier;">@c1 int</span><br /><span style="font-family: courier new,courier;">as</span><br /><span style="font-family: courier new,courier;">begin&nbsp;&nbsp;</span><br /><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp; insert into </span><span style="font-family: courier new,courier;">[dbo].[Trick1]( [sno], [time]) </span><span style="font-family: courier new,courier;">values (</span><span style="font-family: courier new,courier;">@c1, default&nbsp; ) </span><br /><span style="font-family: courier new,courier;">end&nbsp;</span></p>
<p><span style="font-family: courier new,courier;">=&gt; If (Convert TIMESTAMP to BINARY -&gt; True)</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;{</span><br /><br /><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Source </span><span style="font-family: courier new,courier;">column will be timestamp </span><span style="font-family: courier new,courier;">and destination <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; column should be changed to binary.<br /></span><span style="font-family: courier new,courier;"><span style="font-family: courier new,courier;"><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span>@schema_Options -&gt; 0 will be set for </span><span style="font-family: courier new,courier;">"Replicate timestamp <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; columns. If not set,&nbsp;timestamp columns are replicated </span><span style="font-family: courier new,courier;">as binary."<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-family: courier new,courier;">(Refer https://msdn.microsoft.com/en-us/library/ms173857.aspx)</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp; }</span></p>
<p><span style="font-family: courier new,courier;">=&gt; The insert stored procedure will have an explicit </span><span style="font-family: courier new,courier;">variable inserting the value for the timestamp column, Example stored procedure </span><span style="font-family: courier new,courier;">below,</span></p>
<p><span style="font-family: courier new,courier;">create </span><span style="font-family: courier new,courier;">procedure [dbo].[sp_MSins_dboTrick] @c1 int, @c2 binary(8) as</span><br /><span style="font-family: courier new,courier;">begin&nbsp;&nbsp;</span><br /><span style="font-family: courier new,courier;">&nbsp; insert </span><span style="font-family: courier new,courier;">into [dbo].[Trick]( [Sno], [Timet]) </span><span style="font-family: courier new,courier;">values (</span><span style="font-family: courier new,courier;">@c1,&nbsp;&nbsp;</span><span style="font-family: courier new,courier;">@c2)&nbsp;</span><br /><span style="font-family: courier new,courier;">end&nbsp;</span></p>
<p><span style="font-family: courier new,courier;">=&gt; It seems like the value for "Convert TIMESTAMP to </span><span style="font-family: courier new,courier;">BINARY" changes to TRUE automatically for articles that have timestamps in </span><span style="font-family: courier new,courier;">primary key column.</span></p>
<p><span style="font-family: courier new,courier;">=&gt; Ran a profiler trace on subscriber and able to see </span><span style="font-family: courier new,courier;">that we got the above error while creating the stored procedure.</span></p>
<p><span style="font-family: courier new,courier;">=&gt; Created a new database and tried creating the table that </span><span style="font-family: courier new,courier;">has timestamp column in primary key and tried creating the stored procedure. It </span><span style="font-family: courier new,courier;">gave me the same error. In our case I see that the table is already present in </span><span style="font-family: courier new,courier;">the subscriber, as we have initialized with backup.</span><br /><br /><span style="font-family: courier new,courier;">=&gt; Dropped the subscriber, started the profiler.</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;&nbsp; [$] The </span><span style="font-family: courier new,courier;">insert stored procedure sp_MSins_dbo&hellip; and the table gets <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; created at the same </span><span style="font-family: courier new,courier;">time.</span><br /><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;[$] ALTER TABLE </span><span style="font-family: courier new,courier;">[dbo].[Trick] ADD CONSTRAINT [PK_Trick] PRIMARY <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KEY CLUSTERED&nbsp;</span><span style="font-family: courier new,courier;">([Sno],[timet]) gets</span> <span style="font-family: courier new,courier;">created later.</span></p>
<p><span style="font-family: courier new,courier;">=&gt; This is the reason why we dont see this issue while </span><span style="font-family: courier new,courier;">using snapshot.&nbsp;</span></p>
<p><span style="font-family: courier new,courier;">=&gt; The issue with "Initialize with backup" is </span><span style="font-family: courier new,courier;">because when the insert stored procedure gets created the table with primary </span><span style="font-family: courier new,courier;">key is already present.</span></p>
<p>&nbsp;<span style="font-family: courier new,courier;"><span style="font-size: x-small;">=&gt; </span><span style="font-size: small;">Workaround:</span></span></p>
<p><span style="font-family: courier new,courier;"><span style="font-size: small;">[$] Change the timestamp column as part of </span><span style="font-size: small;">the primary key to BINARY data type on the subscriber database. Downside to </span><span style="font-size: small;">this is that you need to change all the columns that has timestamp in primary </span><span style="font-size: small;">key to BINARY on your subscriber database and this operation should be done </span><span style="font-size: small;">every time you restore the backup while using &ldquo;initialize with backup&rdquo; option.</span></span></p>
<p><span style="font-family: courier new,courier;"><span style="font-size: small;">[$] Use snapshot instead of &ldquo;Initialize with </span><span style="font-size: small;">backup&rdquo; option.</span></span></p>
<p><span style="font-family: courier new,courier; font-size: small;">Thank You,</span><br /><span style="font-family: courier new,courier; font-size: small;">Vivek Janakiraman</span></p>
<p><strong><span style="font-family: courier new,courier; font-size: small;">Disclaimer:</span></strong><br /><span style="font-family: courier new,courier; font-size: small;">The views expressed on this blog are mine alone and do not reflect the views of my company or anyone else. All postings on this blog are provided &ldquo;AS IS&rdquo; with no warranties, and confers no rights.</span></p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
  </channel>
</rss>