<?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: Altering a runTime database in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/altering-a-runtime-database/qaa-p/13814813#M4845656</link>
    <description>&lt;P&gt;I don't have a public link, it was mentioned in a post on a private newsgroup; someone had noticed it wasn't shipping with PB 12.5 and the response was that it had been discontinued as of SQL Anywhere 12. There never was much publicity about it so perhaps its demise is being kept under wraps.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2011 14:40:03 GMT</pubDate>
    <dc:creator>Breck_Carter</dc:creator>
    <dc:date>2011-12-14T14:40:03Z</dc:date>
    <item>
      <title>Altering a runTime database</title>
      <link>https://community.sap.com/t5/technology-q-a/altering-a-runtime-database/qaq-p/13814806</link>
      <description>&lt;P&gt;In SQL Anywhere 11.0, I am using the rteng11 startline.  Aware as I am that I can distribute runtime databases if I use no stored procs or triggers, I end all my SQL from the Powerbuilder front end program.  I have distributed a small number of program instances.  Now, I would like to Alter the DB.  No problem with new installations, but  must make alterations to databases that are already installed.  In the case where I am adding columns, I start by tsting whether the column exists.&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="c1"&gt;-- modify database&lt;/SPAN&gt;
&lt;SPAN class="k"&gt;select&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;1&lt;/SPAN&gt; &lt;SPAN class="k"&gt;into&lt;/SPAN&gt; &lt;SPAN class="p"&gt;:&lt;/SPAN&gt;&lt;SPAN class="n"&gt;li_retcode&lt;/SPAN&gt; &lt;SPAN class="k"&gt;from&lt;/SPAN&gt; &lt;SPAN class="n"&gt;systable&lt;/SPAN&gt; &lt;SPAN class="k"&gt;key&lt;/SPAN&gt; &lt;SPAN class="k"&gt;join&lt;/SPAN&gt; &lt;SPAN class="n"&gt;syscolumn&lt;/SPAN&gt; 
   &lt;SPAN class="k"&gt;where&lt;/SPAN&gt; &lt;SPAN class="k"&gt;table_name&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;'project_list'&lt;/SPAN&gt; &lt;SPAN class="k"&gt;and&lt;/SPAN&gt; &lt;SPAN class="k"&gt;column_name&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;'in_date'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;That works fine then&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="k"&gt;if&lt;/SPAN&gt; &lt;SPAN class="n"&gt;li_retcode&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;1&lt;/SPAN&gt; &lt;SPAN class="k"&gt;then&lt;/SPAN&gt; 
   &lt;SPAN class="n"&gt;alter&lt;/SPAN&gt; &lt;SPAN class="n"&gt;table&lt;/SPAN&gt;  &lt;SPAN class="n"&gt;project_list&lt;/SPAN&gt;  &lt;SPAN class="n"&gt;drop&lt;/SPAN&gt; &lt;SPAN class="n"&gt;in_date&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;end&lt;/SPAN&gt; &lt;SPAN class="k"&gt;if&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;unfortunately the alter table statement (which works in the ISQL tab of the DB painter in Powerbuilder gives me an undeclared variable error.&lt;/P&gt;
&lt;P&gt;If I cannot send database alterations to a runtime database how can I proceed?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2011 05:43:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/altering-a-runtime-database/qaq-p/13814806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-07T05:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Altering a runTime database</title>
      <link>https://community.sap.com/t5/technology-q-a/altering-a-runtime-database/qaa-p/13814807#M4845650</link>
      <description>&lt;P&gt;PB's ESQL does not understand ALTER TABLE statement ;). However, RTEng does not allow DDL anyway.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2011 06:14:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/altering-a-runtime-database/qaa-p/13814807#M4845650</guid>
      <dc:creator>former_SQLA_member1694880</dc:creator>
      <dc:date>2011-12-07T06:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Altering a runTime database</title>
      <link>https://community.sap.com/t5/technology-q-a/altering-a-runtime-database/qaa-p/13814808#M4845651</link>
      <description>&lt;P&gt;There are some options:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;bring the database back into the development environment, make the changes, and redeploy the database. &lt;/LI&gt;
&lt;LI&gt;create a new database with the altered schema, deploy it, and have a utility application that copies the data from the old db into the new db.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 07 Dec 2011 08:05:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/altering-a-runtime-database/qaa-p/13814808#M4845651</guid>
      <dc:creator>chris_keating</dc:creator>
      <dc:date>2011-12-07T08:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Altering a runTime database</title>
      <link>https://community.sap.com/t5/technology-q-a/altering-a-runtime-database/qaa-p/13814809#M4845652</link>
      <description>&lt;P&gt;OK, is there a way to unload to a file and load back to a new table that will work with rteng11 nd PB?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Melvyn Polatchek&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2011 10:36:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/altering-a-runtime-database/qaa-p/13814809#M4845652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-07T10:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Altering a runTime database</title>
      <link>https://community.sap.com/t5/technology-q-a/altering-a-runtime-database/qaa-p/13814810#M4845653</link>
      <description>&lt;P&gt;You can using the UNLOAD statement to unload to a file.&lt;/P&gt;
&lt;P&gt;UNLOAD TABLE groupo.departments TO 'departments.csv'&lt;/P&gt;
&lt;P&gt;and use LOAD statement to load into a new database:&lt;/P&gt;
&lt;P&gt;load table groupo.departments from 'departments.csv'&lt;/P&gt;
&lt;P&gt;You cannot unload the database using dbunload utility (or its equivalents) as that generates statements which cannot be executed in the runtime edition. &lt;/P&gt;
&lt;P&gt;Another option is to use a PowerBuilder Pipeline to move the data from the old database to the new database.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2011 11:04:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/altering-a-runtime-database/qaa-p/13814810#M4845653</guid>
      <dc:creator>chris_keating</dc:creator>
      <dc:date>2011-12-07T11:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Altering a runTime database</title>
      <link>https://community.sap.com/t5/technology-q-a/altering-a-runtime-database/qaa-p/13814811#M4845654</link>
      <description>&lt;P&gt;Heads up... AFAIK the runtime engine is no longer available for SQL Anywhere version 12.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2011 14:56:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/altering-a-runtime-database/qaa-p/13814811#M4845654</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2011-12-11T14:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Altering a runTime database</title>
      <link>https://community.sap.com/t5/technology-q-a/altering-a-runtime-database/qaa-p/13814812#M4845655</link>
      <description>&lt;P&gt;Do you have a link on this Breck?&lt;/P&gt;
&lt;P&gt;Jeff Gibson&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2011 13:05:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/altering-a-runtime-database/qaa-p/13814812#M4845655</guid>
      <dc:creator>former_SQLA_member1694871</dc:creator>
      <dc:date>2011-12-14T13:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Altering a runTime database</title>
      <link>https://community.sap.com/t5/technology-q-a/altering-a-runtime-database/qaa-p/13814813#M4845656</link>
      <description>&lt;P&gt;I don't have a public link, it was mentioned in a post on a private newsgroup; someone had noticed it wasn't shipping with PB 12.5 and the response was that it had been discontinued as of SQL Anywhere 12. There never was much publicity about it so perhaps its demise is being kept under wraps.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2011 14:40:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/altering-a-runtime-database/qaa-p/13814813#M4845656</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2011-12-14T14:40:03Z</dc:date>
    </item>
  </channel>
</rss>

