<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged database</title>
<link>https://overflow.efficy.io/?qa=tag/database</link>
<description>Powered by Question2Answer</description>
<item>
<title>MAILS.D_RECEIVED date different depending how the email have been created/saved. Why ?</title>
<link>https://overflow.efficy.io/?qa=7074/mails-dreceived-different-depending-email-created-saved</link>
<description>&lt;p&gt;I have a customer with the strange behaviour on date time of MAILS.D_RECEIVED.&lt;br&gt;
I know that &lt;code&gt;D_CREATE&lt;/code&gt; and &lt;code&gt;D_CHANGE&lt;/code&gt;are usually saved in UTC-0 time (or the time zone set on server) because they are auto-generated by GETDATE(). &lt;br&gt;
But the &lt;code&gt;D_RECEIVED&lt;/code&gt; is a bit different especially if you saving/sending email from outlook or have email saved by AutoMail Uploader.&lt;/p&gt;

&lt;p&gt;Outlook saved it as it is , &lt;code&gt;D_RECEIVED&lt;/code&gt; is same as the email send or received datet time. &lt;br&gt;
The AutoMail Uploader saved it -2 hours, similar to &lt;code&gt;D_CREATE, D_CHANGE&lt;/code&gt;, but the date is not autogenerated (GETDATE()) but more like transformed. &lt;/p&gt;

&lt;p&gt;I've done some dirty grid definition fix to CONVERTUTC if the email has been created by Administartor, if not show it without UTC conversion. &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;td.D_RECEIVED {[&amp;lt;td&amp;gt;
    &amp;lt;a href=&quot;#&quot; data-msg=&quot;edit;&amp;lt;#F=$KEY$;absent=T;context=ATTR&amp;gt;;$ENTITY$&quot;&amp;gt;
        &amp;lt;%If(&quot;&amp;lt;#F=OWNER;context=TEXT&amp;gt;&quot;, value=&quot;%%GetUserName(name='ADMINUSER')&quot;, 
            then=&quot;&amp;lt;#F=$FIELD$;CONVERTUTC=T;emptytext=T;context=TEXT&amp;gt;&quot;,
            else=&quot;&amp;lt;#F=$FIELD$;emptytext=T;context=TEXT&amp;gt;&quot;
        )%&amp;gt;
    &amp;lt;/a&amp;gt;
&amp;lt;/td&amp;gt;]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;By doing it I am getting the right values on the grid. But the client and clients users all have still +2 hours on it. &lt;br&gt;
Is there any explanation that you might know or have ?  &lt;br&gt;
I had a call with the client and she shared the screen. We tried to clean the browser cache, use another browser etc. But still, the values are not correct. &lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=7074/mails-dreceived-different-depending-email-created-saved</guid>
<pubDate>Mon, 15 Jul 2024 14:17:59 +0000</pubDate>
</item>
<item>
<title>Timeout when importing Woocommerce data from Productvariations Table</title>
<link>https://overflow.efficy.io/?qa=6990/timeout-when-importing-woocommerce-productvariations-table</link>
<description>&lt;p&gt;Hi,&lt;br&gt;
I'm trying to get data from a Woocommerce website and the process with the Efficy datasynchro tool doesn't ends.&lt;br&gt;
I'm using a specific ODBC (Cdata driver) driver to access to the Woocommerce database.&lt;br&gt;
&lt;strong&gt;Question :&lt;/strong&gt;&lt;br&gt;
Is there any parameters for this kind of processes ?&lt;br&gt;
Thank you Dimitri&lt;/p&gt;
</description>
<category>Errors</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6990/timeout-when-importing-woocommerce-productvariations-table</guid>
<pubDate>Fri, 20 Oct 2023 13:19:02 +0000</pubDate>
</item>
<item>
<title>How to extract blob data from a Maximizer Database to an Effciy database</title>
<link>https://overflow.efficy.io/?qa=6764/extract-blob-data-from-maximizer-database-effciy-database</link>
<description>&lt;p&gt;Hello,&lt;br&gt;
I need to import all the documents from a Maximizer SQL Database to an Efficy Database.&lt;br&gt;
Is it possible ?&lt;br&gt;
If yes how ?&lt;br&gt;
Thank you&lt;br&gt;
Dimitri&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6764/extract-blob-data-from-maximizer-database-effciy-database</guid>
<pubDate>Sun, 20 Nov 2022 21:32:39 +0000</pubDate>
</item>
<item>
<title>Can the Nomad database / tables have a different collation as the main db?</title>
<link>https://overflow.efficy.io/?qa=6644/can-the-nomad-database-tables-have-different-collation-main</link>
<description>&lt;p&gt;Dear all,&lt;/p&gt;

&lt;p&gt;The customer wants their NOMAD database in a different collation, or at least some columns as the main db. Could this cause problems? I think so, but I don't know for sure.&lt;/p&gt;

&lt;p&gt;Best regards,&lt;/p&gt;

&lt;p&gt;Rob&lt;/p&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6644/can-the-nomad-database-tables-have-different-collation-main</guid>
<pubDate>Tue, 26 Jul 2022 15:44:23 +0000</pubDate>
</item>
<item>
<title>Counting the number of times a template has been run</title>
<link>https://overflow.efficy.io/?qa=5179/counting-the-number-of-times-a-template-has-been-run</link>
<description>&lt;p&gt;Is it possible to count the number of times a template has been run?&lt;br&gt;
Is this logged someway in the database?&lt;/p&gt;

&lt;p&gt;The last used is updated, but I see no trace of this in SYS_CHANGED.&lt;/p&gt;

&lt;p&gt;Is there a way to obtain this Info from the database ?&lt;/p&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5179/counting-the-number-of-times-a-template-has-been-run</guid>
<pubDate>Thu, 09 Jan 2020 12:04:07 +0000</pubDate>
</item>
<item>
<title>View or function 'R_CONTACTS' has more column names specified than columns defined.</title>
<link>https://overflow.efficy.io/?qa=5075/function-rcontacts-column-names-specified-columns-defined</link>
<description>&lt;p&gt;Hi everyone,&lt;/p&gt;

&lt;p&gt;I'm working on a migration from 2012 to 11.3&lt;br&gt;
Db Upgrade have run without any error, i can connect, i can .. etc.&lt;/p&gt;

&lt;p&gt;But, when trying to make a query using &lt;code&gt;R_CONTACTS&lt;/code&gt;, i get this error:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;View or function 'R_CONTACTS' has more column names specified than columns defined.
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;DB Version is &lt;code&gt;11.3.18520.0&lt;/code&gt;&lt;br&gt;
Rdgb: SQL Server&lt;/p&gt;

&lt;p&gt;I don't know if the probleme is linked to my database, or if it is a bug/missing part in the upgrade DB, but ... i found this solution to unblock me.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;EXECUTE sp_refreshview 'R_CONTACTS'
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5075/function-rcontacts-column-names-specified-columns-defined</guid>
<pubDate>Tue, 26 Nov 2019 10:50:15 +0000</pubDate>
</item>
<item>
<title>indexes : SYS_CHANGED_CHRONOS vs SYS_CHANGED_CHRONOS2 performances</title>
<link>https://overflow.efficy.io/?qa=4939/syschangedchronos-syschangedchronos2-performances</link>
<description>&lt;p&gt;Hi everyone,&lt;/p&gt;

&lt;p&gt;before giving the context and my observations, here is my question : for what kind of queries the SYS&amp;#95;CHANGED&amp;#95;CHRONOS and SYS&amp;#95;CHANGED&amp;#95;CHRONOS2 indexes are created ?&lt;br&gt;
&lt;br&gt;&lt;/p&gt;

&lt;p&gt;Yesterday, I observed that the chronos detail was really slow to load.&lt;/p&gt;

&lt;p&gt;In the query logs, the chronos detail has generated one query per selected entity (chronos detail options).&lt;br&gt;
The idea is to get the primary key of each entity linked to the entity.&lt;br&gt;
There is no other query in the logs about chronos detail.&lt;br&gt;
&lt;br&gt;&lt;/p&gt;

&lt;p&gt;So, I guess, but I can’t confirm it without proof, that the primary keys from the previous queries are used by the following SYS&amp;#95;CHANGED queries :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;select K_TABLE, D_CHANGE, USERNAME, OPERATION, K_1, K_2, K_3, MILLI,
&quot;COMMENT&quot; from &quot;GERM&quot;.&quot;SYS_CHANGED&quot; where ((K_1 = :key and K_TABLE in
(:param1)) or (K_2 = :key and K_TABLE in (:param2, :param3, :param4)))
and (D_CHANGE &amp;gt;= :mindate) and (D_CHANGE &amp;lt; :maxdate) order by D_CHANGE,
K_TABLE, K_2, MILLI, OPERATION;
&lt;/code&gt;&lt;/pre&gt;

&lt;hr&gt;

&lt;pre&gt;&lt;code&gt;select distinct USERNAME, D_CHANGE from &quot;GERM&quot;.&quot;SYS_CHANGED&quot; where
((K_1 = :key and K_TABLE in (:param1)) or (K_2 = :key and K_TABLE in
(:param2, :param3, :param4))) and (D_CHANGE &amp;gt;= :mindate) and (D_CHANGE
&amp;lt; :maxdate) order by D_CHANGE DESC;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Each of these queries exists in a lot of versions because of a variation in the number of parameters for K&amp;#95;TABLE field.&lt;br&gt;
&lt;br&gt;&lt;/p&gt;

&lt;p&gt;When I consult the execution plan of the above queries (Oracle - SQL Developer), I observe that the first one is using SYS&amp;#95;CHANGED_CHRONOS (K&amp;#95;2, K&amp;#95;TABLE, D&amp;#95;CHANGE, USERNAME) index and the second one, SYS&amp;#95;CHANGED&amp;#95;CHRONOS2 (D&amp;#95;CHANGE, K&amp;#95;TABLE, K&amp;#95;1, K&amp;#95;2) index.&lt;br&gt;
For each query, I can consult the execution plan with SYS&amp;#95;CHANGED&amp;#95;CHRONOS or SYS&amp;#95;CHANGED&amp;#95;CHRONOS2 index.&lt;br&gt;
The cost is almost the same between these two indexes. So, the choice between them seems to be a really complicated choice for Oracle.&lt;br&gt;
In the database, SYS&amp;#95;CHANGED&amp;#95;CHRONOS is better in a lot of situations.&lt;br&gt;
&lt;br&gt;&lt;/p&gt;

&lt;p&gt;So, for what kind of queries the SYS&amp;#95;CHANGED&amp;#95;CHRONOS and SYS&amp;#95;CHANGED&amp;#95;CHRONOS2 indexes are created ?&lt;br&gt;
&lt;br&gt;&lt;/p&gt;

&lt;p&gt;KR,&lt;/p&gt;

&lt;p&gt;Eric&lt;/p&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4939/syschangedchronos-syschangedchronos2-performances</guid>
<pubDate>Tue, 22 Oct 2019 09:38:06 +0000</pubDate>
</item>
<item>
<title>Create new indexes in tables</title>
<link>https://overflow.efficy.io/?qa=4408/create-new-indexes-in-tables</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;Last Friday, I created several Indexes on different tables. Indeed, we need those indexes to optimize the matching on the customer ID during the datasync and when the customer uses the API.&lt;br&gt;
Today all those indexes have disappeared. What's happen between last Friday and today? An upgrade DB was launched. It seems this action destroys those customs indexes.&lt;br&gt;
Is it the standard behavior? If it is, how to create custom indexes that are not destroy on each db upgrade?&lt;/p&gt;

&lt;p&gt;thanks for the help,&lt;/p&gt;

&lt;p&gt;Laurent&lt;/p&gt;

&lt;p&gt;PS: the &quot;Tools&quot; option into the dbeditor didn't exist anymore into Efficy11.x&lt;/p&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4408/create-new-indexes-in-tables</guid>
<pubDate>Wed, 05 Jun 2019 07:31:51 +0000</pubDate>
</item>
<item>
<title>3rd party needs read-only access to efficy database</title>
<link>https://overflow.efficy.io/?qa=4165/3rd-party-needs-read-only-access-to-efficy-database</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;A client on premise works with a 3rd party company for their telephony purposes. They need to store efficy data in their database for quick interaction with and from efficy to their communications system.&lt;/p&gt;

&lt;p&gt;Not being able to use dumps (their system can't handle big files), we would like to give this client read-only access to a specific part of the database (in this case only 1 view).&lt;/p&gt;

&lt;p&gt;I would prefer to do this with queries, so it can be used for other customers. &lt;/p&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4165/3rd-party-needs-read-only-access-to-efficy-database</guid>
<pubDate>Thu, 25 Apr 2019 06:30:31 +0000</pubDate>
</item>
<item>
<title>NOMAD Server needs?</title>
<link>https://overflow.efficy.io/?qa=3962/nomad-server-needs</link>
<description>&lt;p&gt;What are the current system requirements for a NOMAD DB to set up at a customer.&lt;/p&gt;

&lt;p&gt;Windows version&lt;br&gt;
SQL version&lt;br&gt;
GB disk&lt;br&gt;
GB DB&lt;br&gt;
and so on...&lt;/p&gt;

&lt;p&gt;As Efficy changes I'm looking at the latest specs.&lt;/p&gt;

&lt;p&gt;thanks in advance&lt;/p&gt;
</description>
<category>IT</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3962/nomad-server-needs</guid>
<pubDate>Mon, 18 Feb 2019 14:29:09 +0000</pubDate>
</item>
<item>
<title>How to determine K_RELATION in DOCU_PROD using a direct database-update</title>
<link>https://overflow.efficy.io/?qa=3855/determine-krelation-docuprod-using-direct-database-update</link>
<description>&lt;p&gt;I'm trying to insert rows in the table DOCU_PROD using an external program. So I'm not able to use Efficy-functions. &lt;/p&gt;

&lt;p&gt;All columns are quite logical, but I'm not sure &lt;strong&gt;how to determine the content of K_RELATION&lt;/strong&gt;? Can I just define a random value? Or is it (as the name of the column suggests) a relation to another table? As far as I have seen the values do not need to be unique. &lt;/p&gt;

&lt;p&gt;Edit: I tried to set K&lt;em&gt;RELATION = 0. But when trying to edit the document afterwards it results in the following error: Vind detail met sleutel &quot;97&quot; en relatie &quot;612593356&quot; niet terug&lt;br&gt;
so somehow there must be a logical way to deterime K&lt;/em&gt;RELATION. Does someone know?&lt;/p&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3855/determine-krelation-docuprod-using-direct-database-update</guid>
<pubDate>Fri, 11 Jan 2019 20:39:27 +0000</pubDate>
</item>
<item>
<title>Can't create application login through alias manager</title>
<link>https://overflow.efficy.io/?qa=3818/cant-create-application-login-through-alias-manager</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I installed correctly Efficy 11 on my VM, imported my backup DB in my SQL Server and now, I am using the Alias Manager to link my database to Efficy.&lt;/p&gt;

&lt;p&gt;The problem is that I can't create an Application login for the database through Alias Manager, when I try, I get the following error : &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Invalid object name 'ACC&lt;em&gt;ACCOUNTS. FROM ACC&lt;/em&gt;ACCOUNTS ACC&lt;em&gt;ACCOUNTS WHERE (ACC&lt;/em&gt;ACCOUNTS.USERCODE=:ACC&lt;em&gt;ACCOUNTS&lt;/em&gt;USERCODE) ORDER BY ACC.ACCOUNTS.USERCODE. ---------&amp;gt;  If i use the same login credentials as my sql server&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Login failed for user 'XXX'. Cannot Connect to Database  YYY&lt;br&gt;
---------&amp;gt; when I use any other credentials&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Is there any other way to create my application login for my DB ?&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;
</description>
<category>Efficy Installation/Settings</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3818/cant-create-application-login-through-alias-manager</guid>
<pubDate>Fri, 04 Jan 2019 15:45:07 +0000</pubDate>
</item>
<item>
<title>Error on table view of companies</title>
<link>https://overflow.efficy.io/?qa=3409/error-on-table-view-of-companies</link>
<description>&lt;p&gt;Hello everyone,&lt;/p&gt;

&lt;p&gt;I have an error when i execute a simple query on the views like : &lt;/p&gt;

&lt;p&gt;select * from R_COMPANIES&lt;/p&gt;

&lt;p&gt;i got this msg : &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Msg 537, Level 16, State 3, Line 1&lt;br&gt;
Invalid length parameter passed to the LEFT or SUBSTRING function.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;NB: it just for the companies view &quot;R_COMPANIES&quot;&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;

&lt;p&gt;Regards &lt;/p&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3409/error-on-table-view-of-companies</guid>
<pubDate>Fri, 20 Jul 2018 15:13:56 +0000</pubDate>
</item>
<item>
<title>Connect to oracle from Alias manager Efficy 11</title>
<link>https://overflow.efficy.io/?qa=3404/connect-to-oracle-from-alias-manager-efficy-11</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;When trying to connect to oracle database (pdbTest on Dev server) i'm getting the following error, an idea please?&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=4701422656455139642&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;Thank you in-advance for your help&lt;/p&gt;

&lt;p&gt;Best Regards.&lt;/p&gt;
</description>
<category>Errors</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3404/connect-to-oracle-from-alias-manager-efficy-11</guid>
<pubDate>Wed, 18 Jul 2018 14:41:15 +0000</pubDate>
</item>
<item>
<title>New column with uniqueidentifier (GUID)</title>
<link>https://overflow.efficy.io/?qa=3399/new-column-with-uniqueidentifier-guid</link>
<description>&lt;p&gt;We created an app comparable to extranet for our customers. As part of the app I have to add a column with a GUID in the Efficy database for the entity CASES. This column (F_GUID) uses the type 'uniqueidentifier'. &lt;/p&gt;

&lt;p&gt;How can I make sure that I can add this column in the right way that the designer/conficy keeps working? I manually added columns before, but these always existed of one of the existing data types in Efficy (like integer).&lt;/p&gt;

&lt;p&gt;Thanks for your help!&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3399/new-column-with-uniqueidentifier-guid</guid>
<pubDate>Mon, 16 Jul 2018 07:57:07 +0000</pubDate>
</item>
<item>
<title>Would anyone have the postcode file for UK?</title>
<link>https://overflow.efficy.io/?qa=2662/would-anyone-have-the-postcode-file-for-uk</link>
<description>&lt;p&gt;Hello,&lt;br&gt;
Would anyone have the postcode/zipcode file for UK? (ready to import in DB even better)&lt;br&gt;
Many tkx&lt;br&gt;
Kind regards&lt;br&gt;
Frédéric&lt;/p&gt;
</description>
<category>Efficy Designer (Conficy)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2662/would-anyone-have-the-postcode-file-for-uk</guid>
<pubDate>Fri, 25 Aug 2017 09:05:07 +0000</pubDate>
</item>
<item>
<title>Automatically fill in the province by postcode</title>
<link>https://overflow.efficy.io/?qa=2567/automatically-fill-in-the-province-by-postcode</link>
<description>&lt;p&gt;Hi Team,&lt;/p&gt;

&lt;p&gt;Has anybody ever done this? Simply fill in a custom &quot;province&quot; field depending on the postcode.&lt;br&gt;
Is there a database with provinces easy to match with our current postcode lookup?&lt;/p&gt;

&lt;p&gt;Thanks in advance.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2567/automatically-fill-in-the-province-by-postcode</guid>
<pubDate>Fri, 16 Jun 2017 11:27:17 +0000</pubDate>
</item>
<item>
<title>Nomad database removing from server</title>
<link>https://overflow.efficy.io/?qa=2397/nomad-database-removing-from-server</link>
<description>&lt;p&gt;Dear,&lt;/p&gt;

&lt;p&gt;I had a question from a client asking if we can delete the created child database on DB server after successful nomad setup. Is it necessary to keep the database on server after moving it to nomad machine? Is it included in somehow in replication process?&lt;/p&gt;

&lt;p&gt;Thank you in advance for your help.&lt;/p&gt;

&lt;p&gt;Best Regards.&lt;/p&gt;
</description>
<category>IT</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2397/nomad-database-removing-from-server</guid>
<pubDate>Fri, 17 Mar 2017 16:50:36 +0000</pubDate>
</item>
<item>
<title>DBUpgrade - Subquery returned more than one value</title>
<link>https://overflow.efficy.io/?qa=1933/dbupgrade-subquery-returned-more-than-one-value</link>
<description>&lt;p&gt;Dear,&lt;/p&gt;

&lt;p&gt;We are getting this error 'Subquery returned more than one value...' when clicking on apply in the designer or using dbupgrade.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=11432906479868981802&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;When we try to find a duplicate object in the database by querying the sys.objects table we don't find it.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=9843609837811133564&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;What could be the cause here? &lt;/p&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1933/dbupgrade-subquery-returned-more-than-one-value</guid>
<pubDate>Fri, 07 Oct 2016 14:53:34 +0000</pubDate>
</item>
<item>
<title>How to position an appointment as 'Private' in database in Efficy 2012?</title>
<link>https://overflow.efficy.io/?qa=1595/how-to-position-an-appointment-private-database-efficy-2012</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;What are the tables and fields that we need to update in order to turn a standard appointment in Efficy 2012 to a 'private' appointment in the Agenda?&lt;/p&gt;

&lt;p&gt;Regards,&lt;br&gt;
Cédric Edouard&lt;/p&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1595/how-to-position-an-appointment-private-database-efficy-2012</guid>
<pubDate>Tue, 10 May 2016 07:53:26 +0000</pubDate>
</item>
<item>
<title>How importing an blob image field from an eLink database to an Efficy database via DataSynchro</title>
<link>https://overflow.efficy.io/?qa=1539/importing-image-field-database-efficy-database-datasynchro</link>
<description>&lt;p&gt;I need to update an image field into a category on Efficy provided by eLink.&lt;br&gt;
By default this code doesn't work. &lt;/p&gt;

&lt;p&gt;I tried : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;  Database.ActivateCategory(EditHandle, 'DOCU$ORG')    
  var CategoryDataSet = Database.GetCategoryDataSet(EditHandle, 'DOCU$ORG')
  CategoryDataSet.Edit         
  CategoryDataSet.FieldByName('F_VISUEL').AsWideString = DataStore.AsString('F_VISUEL')
  CategoryDataSet.Save
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;or &lt;/p&gt;

&lt;pre&gt;&lt;code&gt; Database.ActivateCategory(EditHandle, 'DOCU$ORG')   
 Database.UpdateCategory(EditHandle, 'DOCU$ORG', 'F_VISUEL', DataStore.AsString('F_VISUEL')) 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In all cases blob is not updating properly. File seem corrupted. &lt;br&gt;
We tried to do a smartCompress but not recognize into a DataSynchro.&lt;/p&gt;

&lt;p&gt;Any idea to transfer these BLOB ? &lt;/p&gt;

&lt;p&gt;In both cases it's an SQL SERVER 2003 connector&lt;/p&gt;
</description>
<category>How to</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1539/importing-image-field-database-efficy-database-datasynchro</guid>
<pubDate>Thu, 21 Apr 2016 07:55:18 +0000</pubDate>
</item>
<item>
<title>DBEditor new functionnality : Indexes</title>
<link>https://overflow.efficy.io/?qa=1220/dbeditor-new-functionnality-indexes</link>
<description>&lt;p&gt;From Efficy 2014 R6640 in the DBEditor there is a new tool to add compute additional indexes to speed-up list queries, also for custom entities. &lt;/p&gt;

&lt;p&gt;Is it about Database Native Indexes? Where is it? How this is working?&lt;/p&gt;

&lt;p&gt;Can we have more information of indexes which have been put in place to improve search performance?&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1220/dbeditor-new-functionnality-indexes</guid>
<pubDate>Mon, 18 Jan 2016 09:29:20 +0000</pubDate>
</item>
<item>
<title>how to assign a specific queryview as default for all the efficy's user</title>
<link>https://overflow.efficy.io/?qa=1008/how-assign-specific-queryview-default-for-all-efficys-user</link>
<description>&lt;p&gt;I want assign an Efficy query view for every user in the database to initialize my project installation. I searched into the all &quot;ACC&quot;_TABLES but nothing seem stocked there. &lt;/p&gt;

&lt;p&gt;I imagine that the information is somewhere because each user can define them.&lt;br&gt;
Any idea where I can find this information to make my mass update&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1008/how-assign-specific-queryview-default-for-all-efficys-user</guid>
<pubDate>Fri, 11 Dec 2015 09:03:59 +0000</pubDate>
</item>
<item>
<title>Executing sql update statement to linked server</title>
<link>https://overflow.efficy.io/?qa=1003/executing-sql-update-statement-to-linked-server</link>
<description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;If you would ever need to update data that you can access through a linked server in sql server.&lt;/p&gt;

&lt;p&gt;My example, I have a linked server over odbc to an other database.&lt;br&gt;
After importing the data I have to mark the data as imported.&lt;/p&gt;

&lt;p&gt;I tried several solutions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Database.ExecSQL in which I provided in the sql the full path to the linked server&lt;/li&gt;
&lt;li&gt;Database.ExecSQL with the OPENQUERY operator&lt;/li&gt;
&lt;li&gt;Executing a stored procedure which would update the values&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;None of them was working.&lt;/p&gt;

&lt;p&gt;As last option I used the Database.ExecuteODBCQuery&lt;/p&gt;

&lt;p&gt;This one was working but it is important to include this function in a try catch statement as it will always throw an error as it is expecting a dataset back.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;ExecuteODBCQuery(var QueryHandle: integer; ContextHandle:&lt;br&gt;
  TContextHandle; Connection, SQL: string; ForceRefresh, GetAllRecords:&lt;br&gt;
  boolean; StoreID: integer): TDataSet&lt;br&gt;
  More information on this function can be found in EDN&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Code example on how to use the function:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;    function executeOdbcQuery(sql, storeId, OdbcConnectionString){
  var QueryHandle = 1;
  var ODBCContext = Database.OpenTemporaryContext;
  try {
    if(sql.indexOf('select') === -1){
      Database.ExecuteODBCQuery(QueryHandle, ODBCContext, OdbcConnectionString, sql, false, false, storeId);
    }else{
      var ds = Database.ExecuteODBCQuery(QueryHandle, ODBCContext, OdbcConnectionString, sql, false, false, storeId);
      return ds;
    }
  }catch(ex){
    database.log(ex.message);
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Calling the function:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var sql = &quot;insert update query here&quot;;
    OdbcConnectionString=INSERTODBCCONNECTIONSTRING

 executeOdbcQuery(sql,4,OdbcConnectionString)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I hope this helps someone in the future.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;/p&gt;

&lt;p&gt;Brosens Tom&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1003/executing-sql-update-statement-to-linked-server</guid>
<pubDate>Wed, 09 Dec 2015 13:31:48 +0000</pubDate>
</item>
<item>
<title>MsSql Server : How to change Owner name</title>
<link>https://overflow.efficy.io/?qa=807/mssql-server-how-to-change-owner-name</link>
<description>&lt;p&gt;Hi Guy's,&lt;/p&gt;

&lt;p&gt;who was never stuck with several database with the same login on sql server ? (like admin).&lt;/p&gt;

&lt;p&gt;In the past, there were 2 possibilities to change the Owner:&lt;br&gt;
 1. doing a full copy through Conficy&lt;br&gt;
 2. having some knowledge on Ms Sql server and go to all the menu from the management studio.&lt;/p&gt;

&lt;p&gt;Alex.&lt;/p&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=807/mssql-server-how-to-change-owner-name</guid>
<pubDate>Tue, 06 Oct 2015 13:37:26 +0000</pubDate>
</item>
<item>
<title>Oracle DB install options prior Efficy installation</title>
<link>https://overflow.efficy.io/?qa=796/oracle-db-install-options-prior-efficy-installation</link>
<description>&lt;p&gt;Hi all,&lt;br&gt;
Just FYI, in case you are asked what are the Oracle install options prior installing Efficy :&lt;br&gt;
These parameters are decided upon Oracle installation&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Character set INTERNAL_CONVERT WE8ISO8859P15&lt;/li&gt;
&lt;li&gt;&lt;pre&gt;&lt;code&gt;   National character set INTERNAL_CONVERT AL16UTF16
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;=&amp;gt; These &quot;character set&quot; are good for an European traditional db&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;pre&gt;&lt;code&gt;   Default block size for the Oracle DB: 8K, 16K, 32K ?
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;=&amp;gt; keep default blocks size : 8kb&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;pre&gt;&lt;code&gt;   Oracle 32 ou 64b ?
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;=&amp;gt; Oracle server can be 32b or 64b, however Oracle client has to be 32b.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hopes this helps,&lt;br&gt;
Frédéric&lt;/p&gt;
</description>
<category>Efficy Installation/Settings</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=796/oracle-db-install-options-prior-efficy-installation</guid>
<pubDate>Fri, 02 Oct 2015 07:18:32 +0000</pubDate>
</item>
<item>
<title>Add fields to Timesheet module and popup in Proj_TS</title>
<link>https://overflow.efficy.io/?qa=680/add-fields-to-timesheet-module-and-popup-in-projts</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;Please i need to add new field to timesheet, it's the &quot;MODE&quot; field from actions. can you please advise how to do this? i searched in &quot;Fields&quot; in Conficy but couldn't find &quot;TimeSheet&quot; table or its fields. &lt;br&gt;
So after adding it to Timesheet, i want to add this field also in TimeEdit.htm, so just add the proper html there and that's it? i mean after adding &quot;MODE&quot; field properly to DB and Timesheet interface.&lt;/p&gt;

&lt;p&gt;Thank you.&lt;br&gt;
Best Regards.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=680/add-fields-to-timesheet-module-and-popup-in-projts</guid>
<pubDate>Thu, 27 Aug 2015 15:48:27 +0000</pubDate>
</item>
<item>
<title>how to get the correct datetime string from a recordset via serverside javascript</title>
<link>https://overflow.efficy.io/?qa=560/correct-datetime-string-recordset-serverside-javascript</link>
<description>&lt;p&gt;It seems that when we request the time from D_CHANGE and convert it to a string, we get the UTC time instead of the local time:&lt;/p&gt;

&lt;p&gt;var chgeDate = FormatDateTime(&quot;dd/mm/yyyy hh:nn&quot;, DataSet.FieldByName('D_CHANGE').AsFloat);&lt;/p&gt;

&lt;p&gt;Is there an easy trick to get the local time?&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=560/correct-datetime-string-recordset-serverside-javascript</guid>
<pubDate>Mon, 27 Jul 2015 08:21:38 +0000</pubDate>
</item>
<item>
<title>How to Add a condition to the Search Query?</title>
<link>https://overflow.efficy.io/?qa=252/how-to-add-a-condition-to-the-search-query</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;How can we make sure that for every search of projects, the projects with a boolean put on 1 will not be shown, without using securities ? Just that they don't appear in the search results.&lt;/p&gt;

&lt;p&gt;we've taken the system query and changed it, but because the Search is dynamic in creating the queries, our added where isn't taken into account.&lt;/p&gt;

&lt;p&gt;The Changed Sys Query : ( Proj Search )&lt;/p&gt;

&lt;p&gt;[Select]&lt;br&gt;
PROJECTS.K&lt;em&gt;PROJECT&lt;br&gt;
PROJECTS.NAME&lt;br&gt;
PROJECTS.REFERENCE&lt;br&gt;
PROJECTS.D&lt;/em&gt;START&lt;br&gt;
PROJECTS.D_END&lt;br&gt;
PROJECTS.OPENED&lt;/p&gt;

&lt;p&gt;[From]&lt;br&gt;
PROJECTS&lt;/p&gt;

&lt;p&gt;[Orderby]&lt;br&gt;
PROJECTS.NAME&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;[Where]&lt;br&gt;
PROJECTS.F_ARCHIVED IN (0)&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;[Columns]&lt;br&gt;
TREEVIEWPLUS,MENU,NAME{NAMESEARCH},REFERENCE,K_PROJECT{NEWLINE1TREEVIEW}&lt;/p&gt;

&lt;p&gt;We also tried with  [FIXED] added to the where line, but this didnt change any thing&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What is executed really :&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;SELECT &lt;br&gt;
  PROJECTS.K&lt;em&gt;PROJECT,&lt;br&gt;
  PROJECTS.NAME,&lt;br&gt;
  PROJECTS.REFERENCE,&lt;br&gt;
  PROJECTS.D&lt;/em&gt;START,&lt;br&gt;
  PROJECTS.D_END,&lt;br&gt;
  PROJECTS.OPENED&lt;br&gt;
FROM&lt;br&gt;
  ADMINDEV.PROJECTS PROJECTS&lt;br&gt;
WHERE&lt;br&gt;
  (&lt;br&gt;
(PROJECTS.NAME like N'%%%')&lt;br&gt;
or&lt;br&gt;
(PROJECTS.REFERENCE like N'%%%')&lt;br&gt;
)&lt;/p&gt;

&lt;p&gt;AND ((1 &amp;lt;&amp;gt; 0) OR EXISTS (SELECT S1.K&lt;em&gt;USER FROM ADMINDEV.ACC&lt;/em&gt;GROUPS S1, ADMINDEV.PROJ&lt;em&gt;USER S2 WHERE S1.K&lt;/em&gt;USER = S2.K&lt;em&gt;USER AND S1.K&lt;/em&gt;USER2 = 2 AND S2.K&lt;em&gt;PROJECT = PROJECTS.K&lt;/em&gt;PROJECT))&lt;br&gt;
ORDER BY PROJECTS.NAME&lt;/p&gt;

&lt;p&gt;So how can we get this working ? &lt;br&gt;
Is there a way to force from the system query a condition that always has to be taken into account..?&lt;/p&gt;
</description>
<category>Efficy Developers</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=252/how-to-add-a-condition-to-the-search-query</guid>
<pubDate>Thu, 05 Mar 2015 13:50:30 +0000</pubDate>
</item>
<item>
<title>How to apply the modification done on a Development Database to a production Database (Upgrade) ?</title>
<link>https://overflow.efficy.io/?qa=163/modification-development-database-production-database-upgrade</link>
<description>&lt;p&gt;Dear all,&lt;/p&gt;

&lt;p&gt;I have to do the migration from Efficy 2012 summer to Efficy 2014.&lt;/p&gt;

&lt;p&gt;For those that are working with Efficy 2014, I would like to know how to trace the changes in the database in order to redo them when we will go live. &lt;/p&gt;

&lt;p&gt;I heard there was a tool for that in 2014 but I don’t which one and how to use it.&lt;br&gt;
Could you please point me in the right direction ?&lt;/p&gt;

&lt;p&gt;If you have any other good advice in order to migrate a DB and Custom to 2014 they will be greatly appreciated.&lt;/p&gt;

&lt;p&gt;Best Regards,&lt;br&gt;
Stéphane RONCIN&lt;/p&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=163/modification-development-database-production-database-upgrade</guid>
<pubDate>Mon, 26 Jan 2015 08:36:50 +0000</pubDate>
</item>
<item>
<title>CUSTOM Views And Function on CHILD DB</title>
<link>https://overflow.efficy.io/?qa=124/custom-views-and-function-on-child-db</link>
<description>&lt;p&gt;When doing standard SQL queries we use the following code to get the right user in DB which is good when using Child Database :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;#TABLE name='COMPANIES'&amp;gt; COMP
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But do we have such example when we have a call to a Custom Function ?&lt;/p&gt;

&lt;p&gt;for instance : Scalar function CUSTOM&lt;em&gt;GET&lt;/em&gt;NB&lt;em&gt;PROJECT&lt;/em&gt;PER&lt;em&gt;COMPANY(K&lt;/em&gt;COMPANY) &lt;br&gt;
should be call like this :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[databaseuser].CUSTOM_GET_NB_PROJECT_PER_COMPANY(K_COMPANY) 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Can we replace automatically in Efficy the [databaseuser]. like the table name?&lt;/p&gt;

&lt;p&gt;Best Regards,&lt;br&gt;
Stéphane RONCIN&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=124/custom-views-and-function-on-child-db</guid>
<pubDate>Thu, 11 Dec 2014 15:22:18 +0000</pubDate>
</item>
</channel>
</rss>