<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Synchronize Subscription (DBREMOTE SQL17) in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaa-p/13819513#M4850356</link>
    <description>&lt;P&gt;I'm not having any issues performing either regular replication of operations on a table with columns named row and description, or executing a synchronize subscription on this table.&lt;/P&gt;
&lt;PRE&gt;I. 2020-03-11 09:23:26. SQL Remote Message Agent Version 17.0.10.6057
I. 2020-03-11 09:23:26. Received message from "cons" (0-0000708956-0000709293-0)
I. 2020-03-11 09:23:26. Applying message from "cons" (0-0000708956-0000709293-0)
I. 2020-03-11 09:23:26. INSERT INTO cons.admin(a_pkey,"row",description)
                        VALUES (21,'after','synch')
I. 2020-03-11 09:23:26. COMMIT
&lt;/PRE&gt;

&lt;PRE&gt;I. 2020-03-11 09:23:21. SQL Remote Message Agent Version 17.0.10.6057
I. 2020-03-11 09:23:21. Received message from "cons" (0-0000708743-0000708956-0)
I. 2020-03-11 09:23:21. Applying message from "cons" (0-0000708743-0000708956-0)
I. 2020-03-11 09:23:22. DELETE FROM cons.admin
I. 2020-03-11 09:23:22. SELECT a_pkey, "row", description FROM cons.admin
I. 2020-03-11 09:23:22. 40 rows synchronized
I. 2020-03-11 09:23:22. COMMIT
&lt;/PRE&gt;

&lt;P&gt;I did notice that in my output, the "row" column name was double quoted, but it wasn't in yours.  Row was not a reserved word in v10, but it is in v17.  &lt;/P&gt;
&lt;P&gt;I suspect that you have upgraded the remote site to v17, but the consolidated database is still using v10.  When v10 dbremote is generating messages, it does not know that "row" is a reserved word that needs quotes around it.  You will need to upgrade the consolidated database to use v17 as well, or change your column name.&lt;/P&gt;
&lt;P&gt;Reg&lt;/P&gt;
&lt;P&gt;PS: In v12, we introduced the "reserved_keywords" option that could have forced a v12 dbremote to double quote any word you added to the reserved_keywords option, but that option does not exist in v10.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Mar 2020 09:44:36 GMT</pubDate>
    <dc:creator>regdomaratzki</dc:creator>
    <dc:date>2020-03-11T09:44:36Z</dc:date>
    <item>
      <title>Synchronize Subscription (DBREMOTE SQL17)</title>
      <link>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaq-p/13819512</link>
      <description>&lt;P&gt;We were using SQL REMOTE for years on SQL Anywhere 10 without problems.
From some weeks we upgraded to SQL Anywhere 17, and I tried to synchronize a subscription from Server to a Remote.
One of the tables has reversed names as column name (ID, DESCRIPTION, DATETIME), and the synchronization does not work anymore!!&lt;/P&gt;
&lt;P&gt;Is the DBREMOTE now more sensitive? Is there a workaround for this problem?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 18:00:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaq-p/13819512</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2020-03-10T18:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronize Subscription (DBREMOTE SQL17)</title>
      <link>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaa-p/13819514#M4850357</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;and the synchronization does not work anymore!!&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What errors etc. do you get?&lt;/P&gt;
&lt;P&gt;FWIW, we have used SQL Remote from v5.5 to v17 and don't have had problems when migrating to newer versions (or if so, this was solved via EBFs) but we do not use column names with reserved names.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 05:02:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaa-p/13819514#M4850357</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2020-03-11T05:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronize Subscription (DBREMOTE SQL17)</title>
      <link>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaa-p/13819515#M4850358</link>
      <description>&lt;P&gt;I get these error messages:&lt;/P&gt;
&lt;P&gt;E. 2020-03-10 13:31:19. SQL statement failed: (-131) Syntax error near ',' on line 1 &lt;/P&gt;
&lt;P&gt;E. 2020-03-10 13:31:19. Skipping:&lt;/P&gt;
&lt;P&gt;E. 2020-03-10 13:31:19. SELECT &lt;EM&gt;Col1&lt;/EM&gt;, &lt;STRONG&gt;Description&lt;/STRONG&gt;, &lt;EM&gt;Col3&lt;/EM&gt;, &lt;STRONG&gt;row&lt;/STRONG&gt;, &lt;EM&gt;Col5&lt;/EM&gt;, &lt;EM&gt;Col6&lt;/EM&gt;, &lt;EM&gt;Col7&lt;/EM&gt; FROM &lt;EM&gt;Table1&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;E. 2020-03-10 13:32:08. Receiving messages failed&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 08:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaa-p/13819515#M4850358</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2020-03-11T08:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronize Subscription (DBREMOTE SQL17)</title>
      <link>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaa-p/13819516#M4850359</link>
      <description>&lt;P&gt;Yes I know it is very bad to name columns with reserved names. But I can see such mistakes even with system tables!!&lt;/P&gt;
&lt;P&gt;ml_table for example (mobilink)&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 08:52:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaa-p/13819516#M4850359</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2020-03-11T08:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronize Subscription (DBREMOTE SQL17)</title>
      <link>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaa-p/13819513#M4850356</link>
      <description>&lt;P&gt;I'm not having any issues performing either regular replication of operations on a table with columns named row and description, or executing a synchronize subscription on this table.&lt;/P&gt;
&lt;PRE&gt;I. 2020-03-11 09:23:26. SQL Remote Message Agent Version 17.0.10.6057
I. 2020-03-11 09:23:26. Received message from "cons" (0-0000708956-0000709293-0)
I. 2020-03-11 09:23:26. Applying message from "cons" (0-0000708956-0000709293-0)
I. 2020-03-11 09:23:26. INSERT INTO cons.admin(a_pkey,"row",description)
                        VALUES (21,'after','synch')
I. 2020-03-11 09:23:26. COMMIT
&lt;/PRE&gt;

&lt;PRE&gt;I. 2020-03-11 09:23:21. SQL Remote Message Agent Version 17.0.10.6057
I. 2020-03-11 09:23:21. Received message from "cons" (0-0000708743-0000708956-0)
I. 2020-03-11 09:23:21. Applying message from "cons" (0-0000708743-0000708956-0)
I. 2020-03-11 09:23:22. DELETE FROM cons.admin
I. 2020-03-11 09:23:22. SELECT a_pkey, "row", description FROM cons.admin
I. 2020-03-11 09:23:22. 40 rows synchronized
I. 2020-03-11 09:23:22. COMMIT
&lt;/PRE&gt;

&lt;P&gt;I did notice that in my output, the "row" column name was double quoted, but it wasn't in yours.  Row was not a reserved word in v10, but it is in v17.  &lt;/P&gt;
&lt;P&gt;I suspect that you have upgraded the remote site to v17, but the consolidated database is still using v10.  When v10 dbremote is generating messages, it does not know that "row" is a reserved word that needs quotes around it.  You will need to upgrade the consolidated database to use v17 as well, or change your column name.&lt;/P&gt;
&lt;P&gt;Reg&lt;/P&gt;
&lt;P&gt;PS: In v12, we introduced the "reserved_keywords" option that could have forced a v12 dbremote to double quote any word you added to the reserved_keywords option, but that option does not exist in v10.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 09:44:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaa-p/13819513#M4850356</guid>
      <dc:creator>regdomaratzki</dc:creator>
      <dc:date>2020-03-11T09:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronize Subscription (DBREMOTE SQL17)</title>
      <link>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaa-p/13819517#M4850360</link>
      <description>&lt;P&gt;Hm, why does SQL Remote try to apply SELECT statements? Is this from passthrough sessions? In regular mode, it should only apply inserts/updates/deletes...&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 09:46:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaa-p/13819517#M4850360</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2020-03-11T09:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronize Subscription (DBREMOTE SQL17)</title>
      <link>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaa-p/13819518#M4850361</link>
      <description>&lt;P&gt;Yes, your suspection is correct!&lt;/P&gt;
&lt;P&gt;My consolidate is still V10, and my remotes are V17!&lt;/P&gt;
&lt;P&gt;We are now in migration phase, and Cons. will be converted later to V17.&lt;/P&gt;
&lt;P&gt;Now is very difficult to change column name.&lt;/P&gt;
&lt;P&gt;It is now clear what is the cause, since 'row' is for V10 still not reserved.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 09:51:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaa-p/13819518#M4850361</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2020-03-11T09:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronize Subscription (DBREMOTE SQL17)</title>
      <link>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaa-p/13819519#M4850362</link>
      <description>&lt;P&gt;That is the output you will see in the SQL Remote log when the remote database is applying the results of a SYNCHRONIZE SUBSCRIPTION command.  I posted a working example in my answer.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 09:54:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaa-p/13819519#M4850362</guid>
      <dc:creator>regdomaratzki</dc:creator>
      <dc:date>2020-03-11T09:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronize Subscription (DBREMOTE SQL17)</title>
      <link>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaa-p/13819520#M4850363</link>
      <description>&lt;P&gt;Ah, I see, I certainly should have better re-read the question...&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 10:05:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaa-p/13819520#M4850363</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2020-03-11T10:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronize Subscription (DBREMOTE SQL17)</title>
      <link>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaa-p/13819521#M4850364</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;You will need to upgrade the consolidated database to use v17 as well, or change your column name.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Or for the interim just re-extract remotes in case a SYNCHRONIZE SUBSCRIPTION is needed? (Unless you use that statement regularly, say, to add subscriptions to an existing remote).&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 10:10:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaa-p/13819521#M4850364</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2020-03-11T10:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronize Subscription (DBREMOTE SQL17)</title>
      <link>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaa-p/13819522#M4850365</link>
      <description>&lt;P&gt;v10 dbremote will not double quote "row" in regular insert/update/delete statements either, so I suspect these will fail in this environment as well.  I don't think a re-extract will help unless there are typically no operations on that table in the consolidated database.  &lt;/P&gt;
&lt;PRE&gt;I. 2020-03-11 09:34:41. SQL Remote Message Agent Version 10.0.1.4310
I. 2020-03-11 09:34:41. Received message from "cons" (0-0000000000-0000361259-0)
I. 2020-03-11 09:34:41. Applying message from "cons" (0-0000000000-0000361259-0)
I. 2020-03-11 09:34:41. INSERT INTO cons.admin(a_pkey,row)
                        VALUES (1,'8.03681275')
&lt;/PRE&gt;

&lt;P&gt;Reg&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 10:17:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/synchronize-subscription-dbremote-sql17/qaa-p/13819522#M4850365</guid>
      <dc:creator>regdomaratzki</dc:creator>
      <dc:date>2020-03-11T10:17:07Z</dc:date>
    </item>
  </channel>
</rss>

