<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How can I assign a MS SQL-based XpertIvySystemDataBase as the Designer's SystemDb</title><link>https://answers.axonivy.com/questions/2009/how-can-i-assign-a-ms-sql-based-xpertivysystemdatabase-as-the-designer-s-systemdb</link><description>&lt;p&gt;Hello together,&lt;/p&gt;
&lt;p&gt;in my Designer environment all cases, tasks etc. will only be available through the actual session; after close/reopen the Designer all this informations are lost und for example the TaskQuery will not work. &lt;/p&gt;
&lt;p&gt;In the meantime I defined the SystemDb as a Hypersonic  SQL DB in the Memory (like Q&amp;amp;A#996) but all the informations are also lost after restart the Designer.&lt;/p&gt;
&lt;p&gt;Is there a way to assign  a MS SQL-based XpertIvySystemDataBase as the Designer's SystemDb or to save the Hypersonic MemoryDb to MS-SQL to store all the contents permanently for further developing and testing?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;Dieter &lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2009/how-can-i-assign-a-ms-sql-based-xpertivysystemdatabase-as-the-designer-s-systemdb" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 12 Sep 2016 08:44:28 -0400</lastBuildDate><item><title>Comment by Reguel Wermelinger on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/2009/how-can-i-assign-a-ms-sql-based-xpertivysystemdatabase-as-the-designer-s-systemdb#2018</link><description>&lt;p&gt;I'd try to work with a delta insert.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Start a Designer with an empty workspace&lt;/li&gt;
&lt;li&gt;Export the SystemDb at the current state&lt;/li&gt;
&lt;li&gt;Import your project and start the engine&lt;/li&gt;
&lt;li&gt;Create your tasks that you wan't to re-use&lt;/li&gt;
&lt;li&gt;Export the SystemDB again&lt;/li&gt;
&lt;li&gt;Work with a diff tool like WinMerge or similar to find the differences between the first and the second DB export. Try to only apply these insert statements which we're added by your engine start + task creations after a re-boot of the engine&lt;/li&gt;
&lt;/ol&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Mon, 12 Sep 2016 08:44:28 -0400</pubDate><guid>https://answers.axonivy.com/questions/2009/how-can-i-assign-a-ms-sql-based-xpertivysystemdatabase-as-the-designer-s-systemdb#2018</guid></item><item><title>Comment by Dieter Staudt on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/2009/how-can-i-assign-a-ms-sql-based-xpertivysystemdatabase-as-the-designer-s-systemdb#2016</link><description>&lt;p&gt;Dear Reguel,sorry. It's me again. All tries restoring the saved database don't work.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;DROP...  and COPY the complete saved file into the db window the error message "invalid schema name in statement (CRATE SCHEMA PUBLIC AUTHORIZATION DBA )
apperas.&lt;/li&gt;
&lt;li&gt;Only COPY of all INSERT statements: following error message "violation of unique constraint SYS_PK_48: duplicate value(s) for column(s) ... of the first table form the instert statements" appears.&lt;/li&gt;
&lt;li&gt;and DELETE and INSERT do not work because there are problems with missing forreign keys and so on. 
Do you have any idea?
Best regards Dieter&lt;/li&gt;
&lt;/ol&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dieter Staudt</dc:creator><pubDate>Fri, 09 Sep 2016 13:06:05 -0400</pubDate><guid>https://answers.axonivy.com/questions/2009/how-can-i-assign-a-ms-sql-based-xpertivysystemdatabase-as-the-designer-s-systemdb#2016</guid></item><item><title>Comment by Dieter Staudt on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/2009/how-can-i-assign-a-ms-sql-based-xpertivysystemdatabase-as-the-designer-s-systemdb#2015</link><description>&lt;p&gt;Dear Reguel,
thank you. 
the first step works fine - I have all "my" case- and task-data etc.
No I must try to restore this sql-file.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dieter Staudt</dc:creator><pubDate>Thu, 08 Sep 2016 15:44:26 -0400</pubDate><guid>https://answers.axonivy.com/questions/2009/how-can-i-assign-a-ms-sql-based-xpertivysystemdatabase-as-the-designer-s-systemdb#2015</guid></item><item><title>Comment by Reguel Wermelinger on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/2009/how-can-i-assign-a-ms-sql-based-xpertivysystemdatabase-as-the-designer-s-systemdb#2014</link><description>&lt;p&gt;Reguel is ok :)&lt;/p&gt;
&lt;p&gt;the export script will be written to the path you specify as parameter. In the example above the file c:/temp/myHsqlDbExport.sql will be written when the command is executed...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Thu, 08 Sep 2016 15:14:39 -0400</pubDate><guid>https://answers.axonivy.com/questions/2009/how-can-i-assign-a-ms-sql-based-xpertivysystemdatabase-as-the-designer-s-systemdb#2014</guid></item><item><title>Comment by Dieter Staudt on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/2009/how-can-i-assign-a-ms-sql-based-xpertivysystemdatabase-as-the-designer-s-systemdb#2013</link><description>&lt;p&gt;Dear Sir,&lt;/p&gt;
&lt;p&gt;thank you for your answer. Sorry, where can I found the Export-SQL-Script?
There was no attachment to the e-mail or our virus detection has deleted it.&lt;/p&gt;
&lt;p&gt;Best regards
Dieter Staudt&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dieter Staudt</dc:creator><pubDate>Thu, 08 Sep 2016 15:12:11 -0400</pubDate><guid>https://answers.axonivy.com/questions/2009/how-can-i-assign-a-ms-sql-based-xpertivysystemdatabase-as-the-designer-s-systemdb#2013</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/2009/how-can-i-assign-a-ms-sql-based-xpertivysystemdatabase-as-the-designer-s-systemdb/2012</link><description>&lt;p&gt;Create a Database Configuration:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;database = Hypersonic SQL Db&lt;/li&gt;
&lt;li&gt;driver = HSQL Db Memory&lt;/li&gt;
&lt;li&gt;DatabaseName = AxonIvySystemDatabase&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Open the SQL query window and execute:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;SCRIPT 'c:/temp/myHsqlDbExport.sql'&lt;/code&gt; to export the full system db schema plus its content&lt;/li&gt;
&lt;li&gt;&lt;code&gt;DROP SCHEMA PUBLIC CASCADE&lt;/code&gt; removes the default system db after a restart&lt;/li&gt;
&lt;li&gt;Paste the content of the previously exported SQL file to re-create the old version&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Normally you will run into escaping and encoding problems in the last step. A practical solution could be that you only re-import the INSERT statements instead of the whole SCHEMA+DATA to avoid these problems.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Thu, 08 Sep 2016 14:57:01 -0400</pubDate><guid>https://answers.axonivy.com/questions/2009/how-can-i-assign-a-ms-sql-based-xpertivysystemdatabase-as-the-designer-s-systemdb/2012</guid></item><item><title>Comment by Dieter Staudt on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/2009/how-can-i-assign-a-ms-sql-based-xpertivysystemdatabase-as-the-designer-s-systemdb#2011</link><description>&lt;p&gt;Dear Reguel (is it ok?)&lt;/p&gt;
&lt;p&gt;Is there no possibility to store the content of the Hypersonic MEMORY Database for developing and testing functions like ITask, TaskQuery etc.? Now I must create every day new cases and tasks in the Designer.&lt;/p&gt;
&lt;p&gt;Best regards
Dieter&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dieter Staudt</dc:creator><pubDate>Wed, 07 Sep 2016 14:00:30 -0400</pubDate><guid>https://answers.axonivy.com/questions/2009/how-can-i-assign-a-ms-sql-based-xpertivysystemdatabase-as-the-designer-s-systemdb#2011</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/2009/how-can-i-assign-a-ms-sql-based-xpertivysystemdatabase-as-the-designer-s-systemdb/2010</link><description>&lt;p&gt;You can setup a standalone DB (like MsSql) with an Axon.ivy Engine Configuration UI. To run this DB in a Designer simply copy the &lt;code&gt;/configuration/serverconfig.xml&lt;/code&gt; of the engine into your designer.
With this approach you will need a license as well for the designer. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Wed, 07 Sep 2016 12:47:43 -0400</pubDate><guid>https://answers.axonivy.com/questions/2009/how-can-i-assign-a-ms-sql-based-xpertivysystemdatabase-as-the-designer-s-systemdb/2010</guid></item></channel></rss>