<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:re="http://purl.org/atompub/rank/1.0">
    <title type="text">Newest questions tagged interbase - Stack Overflow</title>
    <link rel="self" href="https://stackoverflow.com/feeds/tag?tagnames=interbase&amp;sort=newest" type="application/atom+xml" />
    <link rel="alternate" href="https://stackoverflow.com/questions/tagged?tagnames=interbase&amp;sort=newest" type="text/html" />
    <subtitle>most recent 30 from stackoverflow.com</subtitle>
    <updated>2026-04-15T01:34:09Z</updated>
    <id>https://stackoverflow.com/feeds/tag?tagnames=interbase&amp;sort=newest</id>
    <creativeCommons:license>https://creativecommons.org/licenses/by-sa/4.0/rdf</creativeCommons:license> 
    <entry>
        <id>https://stackoverflow.com/q/79606038</id>
        <re:rank scheme="https://stackoverflow.com">2</re:rank>
        <title type="text">Embarcadero InterBase 2020 Server Edition Update 6 views with more than 2 UNION ALL Select Statements Fails</title>
            <category scheme="https://stackoverflow.com/tags" term="sql" />
            <category scheme="https://stackoverflow.com/tags" term="delphi" />
            <category scheme="https://stackoverflow.com/tags" term="view" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
        <author>
            <name>awakanto</name>
            <uri>https://stackoverflow.com/users/30446097</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/79606038/embarcadero-interbase-2020-server-edition-update-6-views-with-more-than-2-union" />
        <published>2025-05-04T20:48:50Z</published>
        <updated>2025-06-03T16:06:42Z</updated>
        <summary type="html">
            &lt;p&gt;I downloaded the latest Interbase from here &lt;a href=&quot;https://altd.embarcadero.com/download/interbase/2020/latest/InterBase_2020_Windows.zip&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://altd.embarcadero.com/download/interbase/2020/latest/InterBase_2020_Windows.zip&lt;/a&gt; and used the trial version.&lt;/p&gt;&#xA;&lt;p&gt;Upon installation, either as 32-bit or as 64-bit, and creating a database with all the default settings, I cannot run a view with more than two Union All Select statements. It gives the error: arithmetic exception, numeric overflow, or string truncation.&lt;/p&gt;&#xA;&lt;p&gt;Here is the minimum reproducible error:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Install Interbase 2020 (any version of Interbase 2020, including the latest update 6 as of the time of asking this, gives the same error).&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a new database with the default parameters (I tried also altering the default database creation parameters but it made no difference).&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create this table:&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE TESTTABLE1&#xA;(&#xA;     AUTO1 integer NOT NULL&#xA;    ,NAME1 varchar(100)&#xA;    ,CONSTRAINT PK_TESTTABLE1_0 PRIMARY KEY (AUTO1)&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ol start=&quot;4&quot;&gt;&#xA;&lt;li&gt;Insert one entry into this table:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO TESTTABLE1 (AUTO1, NAME1) VALUES (1, &#x27;STUDENT1&#x27;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ol start=&quot;5&quot;&gt;&#xA;&lt;li&gt;Create a view with more than one Union All statement:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre&gt;&lt;code&gt;CREATE VIEW VIEW2 (AUTO1, CUST1) AS  &#xA;    SELECT&#xA;         T1.AUTO1&#xA;        ,T1.NAME1&#xA;    FROM TESTTABLE1 T1&#xA;&#xA;    UNION ALL&#xA;&#xA;    SELECT&#xA;         T2.AUTO1&#xA;        ,T2.NAME1&#xA;    FROM TESTTABLE1 T2&#xA;&#xA;    UNION ALL&#xA;&#xA;    SELECT&#xA;         T3.AUTO1&#xA;        ,T3.NAME1&#xA;    FROM TESTTABLE1 T3;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ol start=&quot;6&quot;&gt;&#xA;&lt;li&gt;Select from this view:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * FROM VIEW2;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Error: Error at line 1: arithmetic exception, numeric overflow, or string truncation&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I noticed that when I have only one UNION ALL SELECT statement, it works correctly.&lt;/p&gt;&#xA;&lt;p&gt;I also noted that when you show System Data(tables) and access the Data tab of the table RDB$VIEW_RELATIONS, in the view with two UNION ALL statements, it has only one entry, inserting only the last table from the select list. In the view that works, it has two tables.&lt;/p&gt;&#xA;&lt;p&gt;Question: Is there a workaround?&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/79590855</id>
        <re:rank scheme="https://stackoverflow.com">0</re:rank>
        <title type="text">Failure when connecting to a LAN UNC path located Interbase database, using IBLite</title>
            <category scheme="https://stackoverflow.com/tags" term="delphi" />
            <category scheme="https://stackoverflow.com/tags" term="firedac" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
            <category scheme="https://stackoverflow.com/tags" term="iblite" />
        <author>
            <name>Didier Cabal&#xE9;</name>
            <uri>https://stackoverflow.com/users/1972425</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/79590855/failure-when-connecting-to-a-lan-unc-path-located-interbase-database-using-ibli" />
        <published>2025-04-24T14:28:09Z</published>
        <updated>2025-05-03T21:32:24Z</updated>
        <summary type="html">
            &lt;p&gt;I&#x27;m writing a little POC console &lt;a href=&quot;https://www.embarcadero.com/products/interbase/lite/free-download&quot; rel=&quot;nofollow noreferrer&quot;&gt;IBLite&lt;/a&gt; application for Windows, using Delphi and the FireDAC components&lt;/p&gt;&#xA;&lt;p&gt;Here is a code that works without error:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;  lDACConnection := TFDConnection.Create(nil);&#xA;  lFDPhysIBDriverLink := TFDPhysIBDriverLink.Create(nil);&#xA;  try&#xA;    lFDPhysIBDriverLink.Lite := true;&#xA;    lDACConnection.DriverName := &#x27;IBLite&#x27;;&#xA;    lDACConnection.Params.Add(&#x27;Database=.\TestORM.IB&#x27;); // &amp;lt;- note the database is local to the application&#xA;    lDACConnection.Params.Add(&#x27;User_Name=sysdba&#x27;);&#xA;    lDACConnection.Params.Add(&#x27;Password=masterkey&#x27;);&#xA;&#xA;    lDACConnection.Open(); // the connection opens gracefully&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now if I want to access that same database, located in a LAN UNC path (either directly or mapped to a drive):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    lDACConnection.Params.Add(&#x27;Database=\\cabale7\&amp;lt;a_network_path_to_my_DB&amp;gt;\TestORM2.IB&#x27;); // &amp;lt;- replace lDACConnection.Params.Add(&#x27;Database=.\TestORM.IB&#x27;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;then I end up with this Error when opening the TFDConnection:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Project OneToManyTest.exe raised exception class EIBNativeException&#xA;with message &#x27;[FireDAC][Phys][IBLite]Unable to complete network&#xA;request to host &amp;quot;CABALE7&amp;quot;. Failed to establish a connection. The&#xA;system cannot find the file specified. &#x27;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;This is &lt;strong&gt;quite annoying&lt;/strong&gt; because all my data, ie Delphi projects source code and databases, are stored on a LAN server (NAS).&lt;/p&gt;&#xA;&lt;p&gt;Note: I noticed an Interbase config file, ibconfig, that is supposed to be deployed where the application is. Should this config file be configured /modified for resolving this issue?&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/79373093</id>
        <re:rank scheme="https://stackoverflow.com">0</re:rank>
        <title type="text">Delphi app won&#x27;t initialize IBX components on Wine (Ubuntu)</title>
            <category scheme="https://stackoverflow.com/tags" term="delphi" />
            <category scheme="https://stackoverflow.com/tags" term="firebird" />
            <category scheme="https://stackoverflow.com/tags" term="wine" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
        <author>
            <name>Martin</name>
            <uri>https://stackoverflow.com/users/988528</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/79373093/delphi-app-wont-initialize-ibx-components-on-wine-ubuntu" />
        <published>2025-01-21T03:01:01Z</published>
        <updated>2025-01-21T07:52:49Z</updated>
        <summary type="html">
            &lt;p&gt;Trying to get my Delphi application to run on Wine but it crashes initializing the IBX (InterBase Express) components. The call stack indicates the crash happens in &lt;code&gt;TMBCSEncoding.Create&lt;/code&gt; with the error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Invalid code page&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I have tried installing the MS core fonts and tried playing around with the local settings, but I am not really sure what settings might apply to MBCS encoding.&lt;/p&gt;&#xA;&lt;p&gt;Anyone managed to get an app using IBX to run on Wine?&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/79285666</id>
        <re:rank scheme="https://stackoverflow.com">0</re:rank>
        <title type="text">command SHOW SYSTEM TABLES generate an error message</title>
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
        <author>
            <name>Serj Norma</name>
            <uri>https://stackoverflow.com/users/25007037</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/79285666/command-show-system-tables-generate-an-error-message" />
        <published>2024-12-16T18:08:39Z</published>
        <updated>2025-06-03T17:38:53Z</updated>
        <summary type="html">
            &lt;p&gt;Got an error message when trying to view a list of system tables on Interbase 2020 server with SHOW SYSTEM TABLES command.&lt;/p&gt;&#xA;&lt;p&gt;Trying to view a list of system tables on Intebase 2020 server by using Interactive SQL utility. When executing command SHOW SYSTEM TABLES got such error message:&lt;/p&gt;&#xA;&lt;p&gt;Executing of script failed&#xA;Access violation at address 0000000000DA606C in module &#x27;IBConsole.exe&#x27;. Read of address 0000657461657243&lt;/p&gt;&#xA;&lt;p&gt;What I do wrong?&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/79142541</id>
        <re:rank scheme="https://stackoverflow.com">1</re:rank>
        <title type="text">How to configure access to remote Interbase Database in emsserver.ini for Rad Server</title>
            <category scheme="https://stackoverflow.com/tags" term="delphi" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
            <category scheme="https://stackoverflow.com/tags" term="rad-server" />
        <author>
            <name>Ken Davis</name>
            <uri>https://stackoverflow.com/users/1248857</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/79142541/how-to-configure-access-to-remote-interbase-database-in-emsserver-ini-for-rad-se" />
        <published>2024-10-30T19:22:01Z</published>
        <updated>2024-11-04T16:35:51Z</updated>
        <summary type="html">
            &lt;p&gt;I have searched and I found this question: &lt;a href=&quot;https://stackoverflow.com/questions/60414475/hosting-rad-server-in-iis-ems-license-not-found&quot;&gt;Hosting RAD Server in IIS. EMS license not found&lt;/a&gt;&#xA;which is the error I am receiving.  I have tried the solutions listed there, but I am still receiving the license not found issue.&lt;/p&gt;&#xA;&lt;p&gt;The server at 192.168.2.28 holds a Rad Server and Interbase running a production web app and is properly licensed and works fine.&#xA;We are attempting to spin up another server (currently for testing and maybe eventually for load balancing) and connect to the interbase db on 192.168.2.28.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;strong&gt;Data&lt;/strong&gt; section of the emsserver.ini file on the new server looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;InstanceName:192.168.2.28/gds_db&#xA;Database=C:\Users\Public\Documents\Embarcadero\EMS\emsserver1.ib&#xA;UserName=TheUerName&#xA;Password=ThePassword&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As I mentioned, when I attempt to connect to this new server via Postman, I received the error:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;quot;EMS license not found.  To resolve this issue, install an instance of Interbase with an EMS license and configure emsserver.ini to connect to the licensed instance.&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As far as I can tell by reading the other post, I have this file configured correctly.  We are using Delphi 10.3.1.&lt;/p&gt;&#xA;&lt;p&gt;One question is, is my &lt;strong&gt;InstanceName&lt;/strong&gt; configured correctly?  The IP address is correct and gds_db appears to be the instance name running on 192.168.2.28.&lt;/p&gt;&#xA;&lt;p&gt;Another question is, Do I need the emsserver1.ib file to also be located on my new server?  Shouldn&#x27;t it just exist on 192.168.2.28.&lt;br /&gt;&#xA;If it only needs to exist on 192.168.2.28, why do I need to specify the full path name to the file in the emsserver.ini on the new server?   Should I specify the &lt;strong&gt;Database&lt;/strong&gt; property differently somehow?&lt;/p&gt;&#xA;&lt;p&gt;Do I just have the emsserver.ini file configured incorrectly?  Do I need to make some change on 192.168.2.28 to allow this to work?&#xA;Thank you for any help you can provide.&#xA;Ken&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/79112970</id>
        <re:rank scheme="https://stackoverflow.com">2</re:rank>
        <title type="text">InterBase find these character (Code 13: Carriage Return (CR) Code 10: Line Feed (LF) ) in database</title>
            <category scheme="https://stackoverflow.com/tags" term="sql" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
        <author>
            <name>Habiburnik</name>
            <uri>https://stackoverflow.com/users/23137501</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/79112970/interbase-find-these-character-code-13-carriage-return-cr-code-10-line-feed" />
        <published>2024-10-22T07:56:53Z</published>
        <updated>2024-11-10T11:28:44Z</updated>
        <summary type="html">
            &lt;p&gt;I am using InterBase 2007 to connect and update information in a database. I am importing data from a SQL Server database, while working on InterBase database.gdb file using Delphi in a DBgrid&lt;/p&gt;&#xA;&lt;p&gt;I am getting a line break in some field as&lt;/p&gt;&#xA;&lt;pre class=&quot;lang-none prettyprint-override&quot;&gt;&lt;code&gt;&amp;quot;Cabezanellosa&#xA;, Salamanca&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;While W want it to be like&lt;/p&gt;&#xA;&lt;pre class=&quot;lang-none prettyprint-override&quot;&gt;&lt;code&gt;&amp;quot;Cabezanellosa, Salamanca&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;After copying the break character and search that on &lt;a href=&quot;https://apps.timwhitlock.info/unicode/inspect&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://apps.timwhitlock.info/unicode/inspect&lt;/a&gt;, I got the character is UTF-8(10) and UTF-8(13) in decimal. I want to replace them with an empty string.&lt;/p&gt;&#xA;&lt;p&gt;I use a program made by my office to export the data to a text file. When any field has this line break, that software stops operation and shows an error.&lt;/p&gt;&#xA;&lt;p&gt;While working in SQL Server, I can easily find and replace those character using this query&lt;/p&gt;&#xA;&lt;pre class=&quot;lang-sql prettyprint-override&quot;&gt;&lt;code&gt;SELECT * FROM data WHERE BIRTH_PLACE LIKE &#x27;%&#x27; &#x2B; CHAR(10) &#x2B; &#x27;%&#x27; OR BIRTH_PLACE LIKE &#x27;%&#x27; &#x2B; CHAR(13) &#x2B; &#x27;%&#x27;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre class=&quot;lang-sql prettyprint-override&quot;&gt;&lt;code&gt;UPDATE data &#xA;SET BIRTH_PLACE = REPLACE(REPLACE(BIRTH_PLACE, CHAR(10), &#x27;&#x27;), CHAR(13), &#x27;&#x27;)&#xA;WHERE BIRTH_PLACE LIKE &#x27;%&#x27; &#x2B; CHAR(10) &#x2B; &#x27;%&#x27; OR BIRTH_PLACE LIKE &#x27;%&#x27; &#x2B; CHAR(13) &#x2B; &#x27;%&#x27;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This query does not work in InterBase 2007. I also tried different AI generated query from multiple AI website as chatGPT, Claude, Copilot&#xA;but none of them are working.&lt;/p&gt;&#xA;&lt;p&gt;Is there any way I can update these character to empty string using InterBase 2007?&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/79089271</id>
        <re:rank scheme="https://stackoverflow.com">0</re:rank>
        <title type="text">Problem with threads in an MDI application: application waits when thread is executing</title>
            <category scheme="https://stackoverflow.com/tags" term="multithreading" />
            <category scheme="https://stackoverflow.com/tags" term="delphi" />
            <category scheme="https://stackoverflow.com/tags" term="delphi-7" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
        <author>
            <name>No&#x27;am Newman</name>
            <uri>https://stackoverflow.com/users/162502</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/79089271/problem-with-threads-in-an-mdi-application-application-waits-when-thread-is-exe" />
        <published>2024-10-15T09:16:04Z</published>
        <updated>2024-10-15T16:38:39Z</updated>
        <summary type="html">
            &lt;p&gt;Over the past 15 years, I have been writing and maintaining an MDI application written in Delphi 7 that accesses a database. The program runs fine and I have no problems (normally) in adding or displaying data from the database.&lt;/p&gt;&#xA;&lt;p&gt;A few days ago, I was tasked with creating a new form/report that calculates correlations from the data; this requires relatively dense code that does not allow usage of the UI whilst the correlation is being calculated. I thought that it would be better to have the correlation be calculated in a separate thread as I understand that this would &#x27;free up&#x27; the UI. The thread sends a message to the main program when it has finished and this message causes the main program to open a new child window and display the correlation, so there is no use of &#x27;synchronise&#x27;.&lt;/p&gt;&#xA;&lt;p&gt;All of this works, BUT the application simply hangs and cannot be revived if I try to open any other form while the thread is executing. This obviates the whole point of using a thread! I have created a separate database connection within the thread, so this would seem not to be the problem.&lt;/p&gt;&#xA;&lt;p&gt;The thread is invoked by the following code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;DoCorrelThread (id1, id2, fdt, caption &#x2B; &#x27; &#x27; &#x2B; cbFromDate.text &#x2B; &#x27; Scale A = &#x27; &#x2B;&#xA;                            cbA.text &#x2B; &#x27;, Scale B = &#x27; &#x2B; cbB.text, HandleTerminate);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;HandleTerminate is a public procedure in the calling form; at the moment it prevents the calling form from being closed while the thread is executing - which is just dodging the real problem.&lt;/p&gt;&#xA;&lt;p&gt;The thread code itself is as follows - this is an edited version that does not calculate correlations, but displays the problem.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;unit correlthread;&#xA;interface&#xA;&#xA;uses Windows, classes, DB, FMTBcd, SqlExpr, dbclient, messages, &#xA; sysutils, IBDatabase, IBCustomDataSet, IBQuery, Registry;&#xA;&#xA;Procedure DoCorrelThread (ascale1, ascale2: longint; adt: tdatetime;&#xA;                      const atitle: string; proc: TMyProc);&#xA;&#xA;implementation&#xA;type&#xA; TCorrelThread = class (TThread)&#xA; private&#xA;  scale1, scale2: longint;&#xA;  fdt: tdatetime;&#xA;  title: string;&#xA;  procedure Execute; override;&#xA; public&#xA;  constructor Create (ascale1, ascale2: longint; adt: tdatetime;&#xA;                      const atitle: string; proc: TMyProc); reintroduce;&#xA;end;&#xA;&#xA;constructor TCorrelThread.Create (ascale1, ascale2: longint; adt: tdatetime;&#xA;                              const atitle: string; proc: TMyProc);&#xA;begin&#xA; inherited Create (true);&#xA; FreeOnTerminate:= True;&#xA; OnTerminate:= proc;&#xA; scale1:= ascale1;&#xA; scale2:= ascale2;&#xA; fdt:= adt;&#xA; title:= atitle;&#xA; resume;&#xA;end;&#xA;&#xA;procedure TCorrelThread.Execute;&#xA;var&#xA; i, j, instance: integer;&#xA; qTemp, qNewInstance: TIBQuery;&#xA; ibdb: TIBDatabase;&#xA; trans: TIBTransaction;&#xA;&#xA;begin&#xA; ibdb:= TIBDatabase.Create (nil);&#xA; with TRegIniFile.create (&#x27;\software\nbn&#x27;) do&#xA;  begin&#xA;   ibdb.databasename:= ReadString (&#x27;firebird&#x27;, &#x27;q4admin&#x27;, &#x27;&#x27;);&#xA;   free&#xA;  end;&#xA;&#xA; with ibdb do&#xA;  begin&#xA;   loginprompt:= false;&#xA;   params.add (&#x27;password=masterkey&#x27;);&#xA;   params.add (&#x27;user_name=sysdba&#x27;);&#xA;   sqldialect:= 1;&#xA;   connected:= true;&#xA;  end;&#xA;&#xA; trans:= TIBTransaction.create (nil);&#xA; trans.defaultdatabase:= ibdb;&#xA; qNewInstance:= TIBQuery.create (nil);&#xA; qNewInstance.database:= ibdb;&#xA; qNewInstance.Transaction:= trans;&#xA; qNewInstance.sql.add (&#x27;select max (instance) from temp&#x27;);&#xA;&#xA; qTemp:= TIBQuery.create (nil);&#xA; qTemp.database:= ibdb;&#xA; qTemp.transaction:= trans;&#xA; qTemp.SQL.add (&#x27;insert into temp (instance, id, payload)&#x27;);&#xA; qTemp.sql.add (&#x27;values (:p1, :p2, :p3)&#x27;);&#xA;&#xA; for i:= 1 to 100 do  // do something that takes some time&#xA;  begin&#xA;   qNewInstance.Open;&#xA;   instance:= qNewInstance.Fields[0].asinteger &#x2B; 1;&#xA;   qNewInstance.Close;&#xA;   trans.active:= false;&#xA;&#xA;   for j:= 1 to 100 do&#xA;    begin&#xA;     trans.StartTransaction;&#xA;     qTemp.Params[0].asinteger:= instance;&#xA;     qTemp.params[1].asinteger:= j;&#xA;     qTemp.params[2].asinteger:= i;&#xA;     qTemp.ExecSQL;&#xA;     trans.Commit;&#xA;     trans.active:= false;&#xA;    end;&#xA;  end;&#xA;&#xA; trans.free;&#xA; ibdb.free;&#xA; sendmessage (mainhandle, WM_ShowCorrel, instance, 0);&#xA;end;&#xA;Procedure DoCorrelThread (ascale1, ascale2: longint; adt: tdatetime;&#xA;                          const atitle: string; proc: TMyProc);&#xA;begin&#xA; TCorrelThread.Create (ascale1, ascale2, adt, atitle, proc);&#xA;end;&#xA;&#xA;end.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As I say, the code itself works fine, but the rest of the program cannot be accessed whilst the thread is executing. Where is the problem?&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/78653444</id>
        <re:rank scheme="https://stackoverflow.com">0</re:rank>
        <title type="text">Scaffold Database Context Error &quot;Object cannot be cast from DBNull to other type&quot;</title>
            <category scheme="https://stackoverflow.com/tags" term="database" />
            <category scheme="https://stackoverflow.com/tags" term="dbcontext" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
        <author>
            <name>Caleb</name>
            <uri>https://stackoverflow.com/users/25574767</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/78653444/scaffold-database-context-error-object-cannot-be-cast-from-dbnull-to-other-type" />
        <published>2024-06-21T16:12:16Z</published>
        <updated>2024-06-21T16:12:16Z</updated>
        <summary type="html">
            &lt;p&gt;I am using this command in the Package Manager Console:&#xA;&lt;code&gt;Scaffold-DbContext &amp;quot;data source=SOURCENAME;initial catalog=INTERBASE_DB;user id=username;password=password&amp;quot; InterBaseSQL.EntityFrameworkCore.InterBase -Tables tableName &#x2013;o dbModel&lt;/code&gt;&#xA;It builds correctly and then gives me the Object cannot be cast from DBNull to other types error.&lt;/p&gt;&#xA;&lt;p&gt;All the solutions I am finding online have to deal with code rather than the scaffold command. Even though my database exists and has NULL values, should I still be able to scaffold? The connection to the database is fine as I can print out all the data...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; var cs = BuildConnectionStringBuilder().ToString();&#xA; using (var connection = new IBConnection(cs))&#xA; {&#xA;     connection.Open();&#xA;     using (var transaction = connection.BeginTransaction())&#xA;     {&#xA;         using (var command = new IBCommand(&amp;quot;select * from artcust&amp;quot;, connection, transaction))&#xA;         {&#xA;             using (var reader = command.ExecuteReader())&#xA;             {&#xA;                 &#xA;                 while (reader.Read())&#xA;                 {&#xA;                     var values = new object[reader.FieldCount];&#xA;                     reader.GetValues(values);&#xA;                     Console.WriteLine(string.Join(&amp;quot;|&amp;quot;, values));&#xA;                     &#xA;                 }&#xA;                 return new object[6];&#xA;             }&#xA;         }&#xA;     }&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;My model would be a lot of manual typing of code and really do not want to do that!&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/77941781</id>
        <re:rank scheme="https://stackoverflow.com">0</re:rank>
        <title type="text">Entity Framework Core Interbase -quotation marks issue</title>
            <category scheme="https://stackoverflow.com/tags" term="entity-framework-core" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
        <author>
            <name>Jishnu Chandran</name>
            <uri>https://stackoverflow.com/users/2606044</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/77941781/entity-framework-core-interbase-quotation-marks-issue" />
        <published>2024-02-05T14:45:35Z</published>
        <updated>2024-08-22T09:46:51Z</updated>
        <summary type="html">
            &lt;p&gt;I am facing an issue with Interbase connectivity using Entity Framework Core, following the guidelines provided in this documentation:&#xA;&lt;a href=&quot;https://docwiki.embarcadero.com/InterBase/2020/en/Entity_Framework&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docwiki.embarcadero.com/InterBase/2020/en/Entity_Framework&lt;/a&gt;.&#xA;The problem arises in the following code snippet:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;using (var db = new myContext())&#xA;{   &#xA;    var iqryble = db.Userlists.Select(d =&amp;gt; d.USRID);&#xA;    var result = iqryble.ToList();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The generated SQL code includes double quotes around table and column names, which is not valid in the Interbase database. The error received is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Error at line 1&#xA;Dynamic SQL Error&#xA;SQL error code = -104&#xA;Token unknown - line 1, char 11&#xA;.&#xA;SQL - SELECT &amp;quot;u&amp;quot;.&amp;quot;USRID&amp;quot;&#xA;FROM &amp;quot;USERLIST&amp;quot; AS &amp;quot;u&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This issue is due to the double quotes. How can I fix this problem?&amp;quot;&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/77884388</id>
        <re:rank scheme="https://stackoverflow.com">2</re:rank>
        <title type="text">Migrating from BDE to FireDac: Strange FireDac behaviour with Interbase and automatic transactions</title>
            <category scheme="https://stackoverflow.com/tags" term="delphi" />
            <category scheme="https://stackoverflow.com/tags" term="transactions" />
            <category scheme="https://stackoverflow.com/tags" term="firedac" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
            <category scheme="https://stackoverflow.com/tags" term="bde" />
        <author>
            <name>Michael Danninger</name>
            <uri>https://stackoverflow.com/users/14516644</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/77884388/migrating-from-bde-to-firedac-strange-firedac-behaviour-with-interbase-and-auto" />
        <published>2024-01-26T05:49:09Z</published>
        <updated>2024-01-26T06:26:57Z</updated>
        <summary type="html">
            &lt;p&gt;The isolated representation of the behavior is as follows:&#xA;I have created a project with Delphi 11.3 and use FireDac components to access an Interbase database. All settings except the connection definition are default. A Select query is opened to query more than 500 records. The data is displayed in a grid and users can move through the data sets. This starts a transaction and keeps it open until the end of the data set is scrolled (or not). If an update is now carried out with a second update query, this does not trigger an automatic transaction (StartTransaction and then Commit) if the one from before is still open, and depending on this the change is visible to others or not. This behavior was different when using the BDE components and we could rely on automatic transactions in a large legacy application. Interestingly, the behavior compared to BDE has not changed when using Oracle as a database and our application works as expected. So if a transaction is autocommited or not depends on the grid having been scrolled to the end. That makes automatic transactions useless. What can I do to influence this behavior centrally without having to process hundreds of queries?&lt;/p&gt;&#xA;&lt;p&gt;I examined the configuration options of the FDConnection component (AutoStart, AutoCommit...), but found no way to adjust the behavior as desired.&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/77850398</id>
        <re:rank scheme="https://stackoverflow.com">1</re:rank>
        <title type="text">Cannot open gbk file - is it Firebird or Interbase?</title>
            <category scheme="https://stackoverflow.com/tags" term="firebird" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
            <category scheme="https://stackoverflow.com/tags" term="firebird-3.0" />
        <author>
            <name>Nils Nielsen</name>
            <uri>https://stackoverflow.com/users/10846415</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/77850398/cannot-open-gbk-file-is-it-firebird-or-interbase" />
        <published>2024-01-20T09:08:03Z</published>
        <updated>2024-10-08T08:28:17Z</updated>
        <summary type="html">
            &lt;p&gt;We have a .gbk file that we are trying to restore to a database, in order to convert it to Postgres, but we can&#x2019;t figure out the ODS or even if it is actually an Interbase file, and not a Firebird file.&lt;/p&gt;&#xA;&lt;p&gt;We ran downloaded gbak version UI-V3.0.10.33601 Firebird 3.0 and restored it. Running gstat on the resulting file gives us:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Database header page information:&#xA;    Flags           0&#xA;    Generation      1814&#xA;    System Change Number    0&#xA;    Page size       16384&#xA;    ODS version     12.2&#xA;    Oldest transaction  1803&#xA;    Oldest active       1804&#xA;    Oldest snapshot     1804&#xA;    Next transaction    1804&#xA;    Sequence number     0&#xA;    Next attachment ID  9&#xA;    Implementation      HW=AMD/Intel/x64 little-endian OS=Darwin CC=gcc&#xA;    Shadow count        0&#xA;    Page buffers        0&#xA;    Next header page    0&#xA;    Database dialect    1&#xA;    Creation date       Jan 19, 2024 23:35:51&#xA;    Attributes      no reserve&#xA;&#xA;    Variable header data:&#xA;    Sweep interval:     0&#xA;    *END*&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Trying to open it with DBeaver on a Mac (as Firebird):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;I/O error during &amp;quot;open&amp;quot; operation for file &#x201C;myfilename&#x201D;; Error while trying to open file; Operation not permitted [SQLState:08001, ISC error code:335544344]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Trying to open it with DBeaver on a PC (as Firebird):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;unsupported on-disk structure for file &#x201C;myfilename&#x201D;: found 32780.18, support (null) (null)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I presume this means it expected 18, and I read that 32779, that is 1 lower than ours, indicates that i is a Firebird 2.x file. Is it a Firebird file because we used gbak as supplied by Firebird? It is the only version we got to work.&lt;/p&gt;&#xA;&lt;p&gt;Trying with Interbase 2020 togo installation (PC)&lt;/p&gt;&#xA;&lt;p&gt;gstat on the gdb file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Wrong ODS version, expected 18, encountered 32780&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Also, running gbak on our gbk file that we started with gives:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;gbak: ERROR: Expected backup version less than or equal to 7. Found 9&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So in summary we can&#x2019;t figure out what is going on at all, it&#x2019;s not clear if the file is too new or too old, or even if it is Firebird or Interbase. What is the right approach?&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/77709472</id>
        <re:rank scheme="https://stackoverflow.com">0</re:rank>
        <title type="text">Unable to connect to Interbase 2020 Database with PHP 8.2</title>
            <category scheme="https://stackoverflow.com/tags" term="php" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
        <author>
            <name>Bob Bullemer</name>
            <uri>https://stackoverflow.com/users/23149319</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/77709472/unable-to-connect-to-interbase-2020-database-with-php-8-2" />
        <published>2023-12-24T01:23:48Z</published>
        <updated>2023-12-24T01:58:18Z</updated>
        <summary type="html">
            &lt;p&gt;We recently installed Interbase Server 2020 on Windows Server 2019&#xA;with Apache Server 2.4.57 (Win64) OpenSSL/3.1.2 PHP/8.2.10&lt;/p&gt;&#xA;&lt;p&gt;I am able to connect to the Interbase SQL Database remotely with  IBConsole Administrator Database Utility on port 3050.&lt;/p&gt;&#xA;&lt;p&gt;The following link show the php info&#xA;including the interbase extension:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://70.182.48.236/testphp.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://70.182.48.236/testphp.php&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I am not able to connect to the Interbase SQL Database remotely with PHP 8.2.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = ibase_connect( DB_HOST.DB_NAME, DB_USER, DB_PASSWORD, &#x27;ISO8859_1&#x27;, 100, 1) OR die(&#x27;Unable to connect to the loan servicing database. &#x27;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I receive the following error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Warning: ibase_connect(): connection rejected by remote interface in&#xA;C:\Program Files\Apache2\htdocs\test-sqlconnect.php on line 24&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;What can I do to connect to the Interbase 2020 Database remotely with PHP 8.2?&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/77674395</id>
        <re:rank scheme="https://stackoverflow.com">0</re:rank>
        <title type="text">FireDAC database unavailable when trying to connect</title>
            <category scheme="https://stackoverflow.com/tags" term="database" />
            <category scheme="https://stackoverflow.com/tags" term="connection" />
            <category scheme="https://stackoverflow.com/tags" term="firedac" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
        <author>
            <name>user2383818</name>
            <uri>https://stackoverflow.com/users/2383818</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/77674395/firedac-database-unavailable-when-trying-to-connect" />
        <published>2023-12-17T12:31:35Z</published>
        <updated>2024-11-29T23:41:18Z</updated>
        <summary type="html">
            &lt;p&gt;When attempting to make a connection (named &lt;code&gt;MyConnection&lt;/code&gt;) on the fly with Interbase server I get the message &lt;code&gt;unavailable database&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Instead, it works fine if I assign a previosuly declared &lt;code&gt;TFDConnection&lt;/code&gt; (named &lt;code&gt;FDConnection1&lt;/code&gt;) to the connection variable.&lt;/p&gt;&#xA;&lt;p&gt;I also assigned all properties of &lt;code&gt;FDConnection1&lt;/code&gt; to &lt;code&gt;MyConnection&lt;/code&gt; attempting to make them identical.&lt;/p&gt;&#xA;&lt;p&gt;Still I am getting the same error message.&lt;/p&gt;&#xA;&lt;p&gt;So I am presuming that there is some unknown twist that I could not find in my researches, that establishes the connection succesfully when assigning a previosuly declared &lt;code&gt;TFDConnection&lt;/code&gt; to the connection variable.&lt;/p&gt;&#xA;&lt;p&gt;Follows code snippets:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;working code&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;implementation&#xA;...&#xA;var MyConnection : TFDConnection;&#xA;...&#xA;procedure MakeConnection;&#xA;begin&#xA;  MyConnection := dmConn.FDConnection1; // resides in a data module&#xA;  MyConnection.Connected := True; // works fine&#xA;  {dmConn.FDConnection1 properties&#xA;     Name        = FDConnection1&#xA;     DriverName  = IB&#xA;     LoginPrompt = False&#xA;     Params &#xA;       Database = C:\MyDatabase&#xA;       DriverId = IB&#xA;       Password = masterkey&#xA;       UserName = SYSDBA&#xA;       InstanceName = instance2 // name of the server instance&#xA;       OsAuthent    = No&#xA;       Port         = 3050&#xA;  }&#xA;End;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;not working code&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;implementation&#xA;...&#xA;var MyConnection : TFDConnection;&#xA;...&#xA;procedure MakeConnection;&#xA;begin&#xA;  MYConnection := TFDconnection.Create (Self);&#xA;  with MyConnection do begin&#xA;       Name        := &#x27;MyConnection1&#x27;;&#xA;       DriverName  := &#x27;IB&#x27;;&#xA;       LoginPrompt :=  False;&#xA;       with Params do begin&#xA;            Clear;&#xA;            Database := &#x27;C:\MyDatabase&#x27;;&#xA;            DriverId := &#x27;IB&#x27;;&#xA;            Password := &#x27;masterkey&#x27;;&#xA;            UserName := &#x27;SYSDBA&#x27;;&#xA;            Add (&#x27;InstanceName = instance2&#x27;); // name of the server instance        Add (&#x27;OsAuthent    = No&#x27;);&#xA;            Add (&#x27;Port         = 3050&#x27;);&#xA;       end;&#xA;       Connected := True; // error message at this point&#xA;   end;&#xA;end;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As you can see, all properties are exactly the same.&lt;/p&gt;&#xA;&lt;p&gt;Follows error message:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.sstatic.net/MiuEl.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.sstatic.net/MiuEl.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Any help with this issue will be highly appreciated.&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/77476552</id>
        <re:rank scheme="https://stackoverflow.com">0</re:rank>
        <title type="text">Testing for existence of a row and insert it if not present in InterBase</title>
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
        <author>
            <name>Vic Fanberg</name>
            <uri>https://stackoverflow.com/users/1159970</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/77476552/testing-for-existence-of-a-row-and-insert-it-if-not-present-in-interbase" />
        <published>2023-11-13T20:01:40Z</published>
        <updated>2023-11-14T05:12:20Z</updated>
        <summary type="html">
            &lt;p&gt;I am looking for a way to insert rows into an InterBase table if they do not already exist in the table.  I cannot guarantee that the InterBase table is not empty to begin with.&lt;/p&gt;&#xA;&lt;p&gt;In SQL Server, I could do something like the WHERE NOT EXISTS in the following script sample where the output is the same whether or not the commented line is uncommented or not.  In SQL Server, the script continues to function even if the first INSERT INTO is also commented out.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE #Table(A VARCHAR(3), B INT, C INT);&#xA;INSERT INTO #Table(A, B, C) VALUES (&#x27;a1&#x27;, 1, 11);&#xA;--INSERT INTO #Table(A, B, C) VALUES (&#x27;a2&#x27;, 2, 12);&#xA;&#xA;INSERT INTO #Table(A, B, C)&#xA;    SELECT &#x27;a2&#x27;, 2, 12&#xA;    WHERE NOT EXISTS (&#xA;        SELECT 1&#xA;        FROM #Table WHERE A=&#x27;a2&#x27; AND B=2 AND c=12)&#xA;&#xA;SELECT * FROM #Table;&#xA;&#xA;DROP TABLE #Table;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How would I do the equivalent of this in InterBase?&lt;/p&gt;&#xA;&lt;p&gt;Note, there is a second question embedded in this script because I know &amp;quot;FROM&amp;quot; is required by syntax for a &amp;quot;SELECT&amp;quot; in InterBase and there is no &amp;quot;FROM&amp;quot; in the line &amp;quot;SELECT &#x27;a2&#x27;, 2, 12&amp;quot;, and I am curious what the best way to handle that is from someone experienced with InterBase.&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/77394731</id>
        <re:rank scheme="https://stackoverflow.com">0</re:rank>
        <title type="text">Error 104 after creating domain in Interbase 2020 script</title>
            <category scheme="https://stackoverflow.com/tags" term="sql" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
        <author>
            <name>Mark</name>
            <uri>https://stackoverflow.com/users/8425066</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/77394731/error-104-after-creating-domain-in-interbase-2020-script" />
        <published>2023-10-31T09:31:26Z</published>
        <updated>2023-10-31T09:50:52Z</updated>
        <summary type="html">
            &lt;p&gt;I am a beginner with Interbase (always used Advantage and SQL Server) and I am now running into a problem that is probably very easy to fix, but I&#x27;m just not seeing it (nor can I find a usable hint in the documentation).  Please consider the following (condensed script):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;CREATE DOMAIN DOM_ID AS INTEGER;&#xA;CREATE TABLE Relatie (&#xA;  ID DOM_ID NOT NULL,&#xA;  RelatieNaam VARCHAR(100),&#xA;  Bedrijf VARCHAR(40),&#xA;  CONSTRAINT PK_RELATIE PRIMARY KEY (ID)&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This script fails (using &#x27;Prepare&#x27;) with error message &#x27;&lt;em&gt;Dynamic SQL error. SQL Error code = -104. Token unknown - line 2, char 1 CREATE&lt;/em&gt;&#x27;.&lt;/p&gt;&#xA;&lt;p&gt;I first thought creating the domain requires a &lt;code&gt;Commit&lt;/code&gt; but as per documentation that&#x27;s not required here since it&#x27;s a DDL statement.&lt;/p&gt;&#xA;&lt;p&gt;What am I doing wrong / am I overlooking?&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/77234518</id>
        <re:rank scheme="https://stackoverflow.com">0</re:rank>
        <title type="text">INTERBASE bad parameter number error when using subqueries</title>
            <category scheme="https://stackoverflow.com/tags" term="delphi" />
            <category scheme="https://stackoverflow.com/tags" term="syntax-error" />
            <category scheme="https://stackoverflow.com/tags" term="c&#x2B;&#x2B;builder" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
        <author>
            <name>Vic Fanberg</name>
            <uri>https://stackoverflow.com/users/1159970</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/77234518/interbase-bad-parameter-number-error-when-using-subqueries" />
        <published>2023-10-05T05:47:52Z</published>
        <updated>2023-10-06T05:40:15Z</updated>
        <summary type="html">
            &lt;p&gt;I have been working on switching over to an Interbase database from SQLITE.  One of the issues I have run into is a &amp;quot;bad parameter number&amp;quot; error.  So, I went back to one of the sample databases that Embarcadero supplies (EMPLOYEE) to tried various SQL commands to reproduce the problem.&lt;/p&gt;&#xA;&lt;p&gt;So here is a scenario: I want a query that gives the average sales amount for all sales to a particular customer over a pre-specified amount.  So, here is a query that works for that:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT AVG(TOTAL_VALUE) AS AvgSales&#xA;FROM SALES&#xA;WHERE TOTAL_VALUE &amp;gt; :TOTAL_VALUE&#xA;  AND CUST_NO = :CUSTNO&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now, I want to store that average in a table.  But how can you do that?  Here is what I tried:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE &amp;lt;table&amp;gt;&#xA;SET &amp;lt;Column&amp;gt; = (SELECT AVG(TOTAL_VALUE) AS AvgSales&#xA;                FROM SALES&#xA;                WHERE TOTAL_VALUE &amp;gt; :TOTAL_VALUE&#xA;                  AND CUST_NO = :CUST_NO)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But when you try to execute that, it gives the error message &amp;quot;bad parameter number&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;If you hard code the two parameters, it works fine:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE &amp;lt;table&amp;gt;&#xA;SET &amp;lt;Column&amp;gt; = (SELECT AVG(TOTAL_VALUE) AS AvgSales&#xA;                FROM SALES&#xA;                WHERE TOTAL_VALUE &amp;gt; 10000&#xA;                  AND CUST_NO = 1001)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;After more experimenting, it looks to me like any parameter in a subquery will generate that same error message rather than executing.  For example, this also generates the same error message (and hard coding the parameters works):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT AMT&#xA;FROM&#xA;    (SELECT AVG(TOTAL_VALUE) AS AvgSales&#xA;     FROM  SALES&#xA;     WHERE TOTAL_VALUE &amp;gt; :TOTAL_VALUE&#xA;       AND CUST_NO = :CUSTNO&#xA;    ) X(Amt)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So, how do you go about storing such a value in an Interbase table?&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/77178280</id>
        <re:rank scheme="https://stackoverflow.com">0</re:rank>
        <title type="text">Connect remote Interbase database freeze my app</title>
            <category scheme="https://stackoverflow.com/tags" term="delphi" />
            <category scheme="https://stackoverflow.com/tags" term="network-programming" />
            <category scheme="https://stackoverflow.com/tags" term="connection" />
            <category scheme="https://stackoverflow.com/tags" term="c&#x2B;&#x2B;builder" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
        <author>
            <name>&#x635;&#x641;&#x648;&#x627;&#x646; &#x62D;&#x627;&#x632;&#x645; &#x645;&#x633;&#x648;&#x62F;&#x629;</name>
            <uri>https://stackoverflow.com/users/22636166</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/77178280/connect-remote-interbase-database-freeze-my-app" />
        <published>2023-09-26T08:30:25Z</published>
        <updated>2023-09-26T08:30:25Z</updated>
        <summary type="html">
            &lt;p&gt;I have an application (C&#x2B;&#x2B;Builder, Delphi) and I connect to remote Interbase database via IBX (TIBDatabase).&lt;/p&gt;&#xA;&lt;p&gt;When try to connect to database using network and the IP address dosn&#x27;t exists, so the application freeze for 20 seconds until the error message (Unable to complete network request to host &amp;quot;172.16.1.144:3050&amp;quot;. Failed to establish a connection.) appears.&lt;/p&gt;&#xA;&lt;p&gt;I try to connect to remote database using a new thread, also the app freeze.&lt;/p&gt;&#xA;&lt;p&gt;How can try to connect without freeze the whole app ??&lt;/p&gt;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/76956752</id>
        <re:rank scheme="https://stackoverflow.com">0</re:rank>
        <title type="text">Shutdown Interbase Database from Delphi</title>
            <category scheme="https://stackoverflow.com/tags" term="delphi" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
        <author>
            <name>Jeff Cope</name>
            <uri>https://stackoverflow.com/users/839577</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/76956752/shutdown-interbase-database-from-delphi" />
        <published>2023-08-22T20:44:45Z</published>
        <updated>2023-08-22T20:44:45Z</updated>
        <summary type="html">
            &lt;p&gt;Using the &lt;strong&gt;TIBConfigService&lt;/strong&gt; I&#x27;m attempting to shutdown an Interbase database using its &lt;strong&gt;ShutdownDatabase&lt;/strong&gt; method like so:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt; ibConfig.ShutdownDatabase(Forced, 0);&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;This ends up with an error, &lt;strong&gt;&amp;quot;Invalid Service Handle&amp;quot;.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Setting the &lt;strong&gt;Active&lt;/strong&gt; property on the control is successful and other methods on the &lt;strong&gt;TIBConfigService&lt;/strong&gt; such as &lt;strong&gt;SweepDatabase&lt;/strong&gt; work as expected.&lt;/p&gt;&#xA;&lt;p&gt;How can I resolve the &lt;strong&gt;&amp;quot;Invalid Service Handle&amp;quot;&lt;/strong&gt; error?&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/76651319</id>
        <re:rank scheme="https://stackoverflow.com">1</re:rank>
        <title type="text">Entity Framework Core Interbase SQL 7.13.1 error</title>
            <category scheme="https://stackoverflow.com/tags" term=".net" />
            <category scheme="https://stackoverflow.com/tags" term="entity-framework-core" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
        <author>
            <name>Craig Cookesley</name>
            <uri>https://stackoverflow.com/users/8191796</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/76651319/entity-framework-core-interbase-sql-7-13-1-error" />
        <published>2023-07-10T06:55:02Z</published>
        <updated>2023-07-10T12:01:04Z</updated>
        <summary type="html">
            &lt;p&gt;I Got this error doing a query with parameters with .NET entity framework&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Exception thrown: &#x27;InterBaseSql.Data.InterBaseClient.IBException&#x27; in System.Private.CoreLib.dll&#xA;Dynamic SQL Error&#xA;SQL error code = -104&#xA;Token unknown - line 3, column 29&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I upgraded to 7.13.1 and then got this error&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Microsoft.EntityFrameworkCore.DbUpdateException&#xA;  HResult=0x80131500&#xA;  Message=An error occurred while saving the entity changes. See the inner exception for details.&#xA;  Source=Microsoft.EntityFrameworkCore.Relational&#xA;  StackTrace:&#xA;   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.&amp;lt;ExecuteAsync&amp;gt;d__29.MoveNext()&#xA;   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.&amp;lt;ExecuteAsync&amp;gt;d__9.MoveNext()&#xA;   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.&amp;lt;ExecuteAsync&amp;gt;d__9.MoveNext()&#xA;   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.&amp;lt;ExecuteAsync&amp;gt;d__9.MoveNext()&#xA;   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.&amp;lt;SaveChangesAsync&amp;gt;d__103.MoveNext()&#xA;   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.&amp;lt;SaveChangesAsync&amp;gt;d__107.MoveNext()&#xA;   at Microsoft.EntityFrameworkCore.DbContext.&amp;lt;SaveChangesAsync&amp;gt;d__60.MoveNext()&#xA;   at Microsoft.EntityFrameworkCore.DbContext.&amp;lt;SaveChangesAsync&amp;gt;d__60.MoveNext()&#xA;   at Common.DataAccess.EFCore.Repositories.BaseUserRepository`2.&amp;lt;Edit&amp;gt;d__2.MoveNext() in C:\bundle2\bundle-interbase\backend\src\Common\Common.DataAccess.EFCore\Repositories\BaseUserRepository.cs:line 45&#xA;   at Common.Services.UserService`1.&amp;lt;Edit&amp;gt;d__5.MoveNext() in C:\bundle2\bundle-interbase\backend\src\Common\Common.Services\UserService.cs:line 45&#xA;   at Common.WebApiCore.Controllers.UsersController.&amp;lt;Create&amp;gt;d__7.MoveNext() in C:\bundle2\bundle-interbase\backend\src\Common\Common.WebApiCore\Controllers\UsersController.cs:line 75&#xA;   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.&amp;lt;Execute&amp;gt;d__0.MoveNext()&#xA;   at System.Threading.Tasks.ValueTask`1.get_Result()&#xA;   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.&amp;lt;&amp;lt;InvokeActionMethodAsync&amp;gt;g__Awaited|12_0&amp;gt;d.MoveNext()&#xA;   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.&amp;lt;&amp;lt;InvokeNextActionFilterAsync&amp;gt;g__Awaited|10_0&amp;gt;d.MoveNext()&#xA;   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)&#xA;   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State&amp;amp; next, Scope&amp;amp; scope, Object&amp;amp; state, Boolean&amp;amp; isCompleted)&#xA;   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()&#xA;--- End of stack trace from previous location ---&#xA;   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&amp;lt;&amp;lt;InvokeFilterPipelineAsync&amp;gt;g__Awaited|20_0&amp;gt;d.MoveNext()&#xA;   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&amp;lt;&amp;lt;InvokeAsync&amp;gt;g__Logged|17_1&amp;gt;d.MoveNext()&#xA;   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&amp;lt;&amp;lt;InvokeAsync&amp;gt;g__Logged|17_1&amp;gt;d.MoveNext()&#xA;   at Microsoft.AspNetCore.Routing.EndpointMiddleware.&amp;lt;&amp;lt;Invoke&amp;gt;g__AwaitRequestTask|6_0&amp;gt;d.MoveNext()&#xA;   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.&amp;lt;Invoke&amp;gt;d__9.MoveNext()&#xA;   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.&amp;lt;Invoke&amp;gt;d__6.MoveNext()&#xA;   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.&amp;lt;Invoke&amp;gt;d__5.MoveNext()&#xA;   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.&amp;lt;Invoke&amp;gt;d__4.MoveNext()&#xA;   at Common.WebApiCore.Setup.ErrorHandlingMiddleware.&amp;lt;Invoke&amp;gt;d__3.MoveNext() in C:\bundle2\bundle-interbase\backend\src\Common\Common.WebApiCore\Setup\ErrorHandlingMiddleware.cs:line 32&#xA;&#xA;  This exception was originally thrown at this call stack:&#xA;    [External Code]&#xA;&#xA;Inner Exception 1:&#xA;IBException: Dynamic SQL Error&#xA;SQL error code = -303&#xA;internal error&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Trying to add a new user&lt;/p&gt;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;&lt;p&gt;Craig&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Inner Exception 2:&#xA;IscException: Dynamic SQL Error&#xA;SQL error code = -303&#xA;internal error&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;adding a new user with roles and claims&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/76382307</id>
        <re:rank scheme="https://stackoverflow.com">0</re:rank>
        <title type="text">64bit FireDac connection to Interbase requires unnecessary ibtogo64.dll?</title>
            <category scheme="https://stackoverflow.com/tags" term="delphi" />
            <category scheme="https://stackoverflow.com/tags" term="firedac" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
            <category scheme="https://stackoverflow.com/tags" term="delphi-11-alexandria" />
        <author>
            <name>Jan Doggen</name>
            <uri>https://stackoverflow.com/users/512728</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/76382307/64bit-firedac-connection-to-interbase-requires-unnecessary-ibtogo64-dll" />
        <published>2023-06-01T13:16:18Z</published>
        <updated>2023-06-01T13:16:18Z</updated>
        <summary type="html">
            &lt;p&gt;After converting my Delphi Alexandria 11.3 program from 32 to 64 bits, I noticed that connecting to a (64bit) FireBird database required other DLLs.&lt;/p&gt;&#xA;&lt;p&gt;In &lt;code&gt;FireDac.Phys.IBWrapper&lt;/code&gt; this procedure gets called with&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;AVendorHome=&#x27;&#x27;&#xA;AVendorLib=&#x27;&#x27;&#xA;ALibNames=(&#x27;ibclient64.dll&#x27;, &#x27;ibtogo64.dll&#x27;)&#xA;&#xA;procedure TIBLib.LoadBase(const AVendorHome, AVendorLib: String; AThreadSafe: Boolean&#xA;  {$IFNDEF FireDAC_IB_STATIC} ; const ALibNames: array of String {$ENDIF});&#xA;{$IFNDEF FireDAC_IB_STATIC}&#xA;var&#xA;  sDLLName: String;&#xA;  aDLLNames: array of String;&#xA;  i, j, n: Integer;&#xA;{$ENDIF}&#xA;begin&#xA;  FThreadSafe := AThreadSafe;&#xA;{$IFNDEF FireDAC_IB_STATIC}&#xA;  for j := 1 to 2 do begin&#xA;    sDLLName := AVendorHome;&#xA;    if sDLLName &amp;lt;&amp;gt; &#x27;&#x27; then begin&#xA;      sDLLName := FDNormPath(sDLLName);&#xA;      if j = 2 then&#xA;        sDLLName := FDNormPath(sDLLName &#x2B; C_FD_DLLFolder);&#xA;    end&#xA;    else if j = 2 then&#xA;      Break;&#xA;    n := Length(aDLLNames);&#xA;    if AVendorLib &amp;lt;&amp;gt; &#x27;&#x27; then begin&#xA;      SetLength(aDLLNames, n &#x2B; 1);&#xA;      aDLLNames[n] := sDLLName &#x2B; AVendorLib;&#xA;    end&#xA;    else begin&#xA;      SetLength(aDLLNames, n &#x2B; Length(ALibNames));&#xA;      for i := 0 to Length(ALibNames) - 1 do            &amp;lt;-- HERE&#xA;        aDLLNames[n &#x2B; i] := sDLLName &#x2B; ALibNames[i];&#xA;    end;&#xA;  end;&#xA;  inherited Load(aDLLNames, True);&#xA;{$ELSE}&#xA;  LoadEntries;&#xA;  GetLibraryInfo;&#xA;{$ENDIF}&#xA;end;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What this does is filling the initially empty &lt;code&gt;aDLLNames&lt;/code&gt; with the two entries in &lt;code&gt;ALibNames&lt;/code&gt; (&#x27;HERE&#x27;)&#xA;The inherited &lt;code&gt;Load(aDLLNames, True)&lt;/code&gt; (the True meaning Required) then tries to load &lt;em&gt;both&lt;/em&gt; DLLs with &lt;code&gt;inherited LoadLibrary(ADLLNames, ARequired)&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I copied the two files &lt;code&gt;ibclient64.dll&lt;/code&gt; and &lt;code&gt;interbase.msg&lt;/code&gt; from &lt;code&gt;c:\Users\Public\Documents\Embarcadero\Interbase\redist\InterBase2020\win64\&lt;/code&gt; to my program directory,&#xA;but the above code &lt;em&gt;also&lt;/em&gt; requires &lt;code&gt;ibtogo64.dll&lt;/code&gt;, so this then fails on the &lt;code&gt;ibtogo64.dll&lt;/code&gt; with &#x27;Cannot load vendor library&#x27;:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.sstatic.net/fBbP5.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.sstatic.net/fBbP5.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;My code does not use IBToGo.&lt;/p&gt;&#xA;&lt;p&gt;The array with the two names was set up in (&#x27;HERE&#x27;):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;procedure TIBLib.LoadIB(const AVendorHome, AVendorLib: String;&#xA;  AEmbedded, AThreadSafe: Boolean);&#xA;{$IFNDEF FireDAC_IB_STATIC}&#xA;const&#xA;  C_GDS:      String = {$IFDEF MSWINDOWS} {$IFDEF FireDAC_64} &#x27;ibclient64&#x27; {$ELSE} &#x27;gds32&#x27; {$ENDIF} {$ENDIF}&#xA;                       {$IFDEF POSIX} &#x27;libgds&#x27; {$ENDIF} &#x2B; C_FD_DLLExt;&#xA;  C_TOGO:     String = {$IFDEF MSWINDOWS} {$IFDEF FireDAC_64} &#x27;ibtogo64&#x27; {$ELSE} &#x27;ibtogo&#x27; {$ENDIF} {$ENDIF}&#xA;                       {$IFDEF POSIX} &#x27;libibtogo&#x27; {$ENDIF} &#x2B; C_FD_DLLExt;&#xA;{$ENDIF}&#xA;begin&#xA;{$IFDEF ANDROID}&#xA;  FDSetEnv(&#x27;INTERBASE&#x27;, TPath.GetDocumentsPath &#x2B; PathDelim &#x2B; &#x27;interbase&#x27;);&#xA;{$ENDIF}&#xA;  if AEmbedded then&#xA;    // Force ToGo&#xA;    LoadBase(AVendorHome, AVendorLib, AThreadSafe&#xA;{$IFNDEF FireDAC_IB_STATIC},&#xA;      [C_TOGO]&#xA;{$ENDIF}&#xA;    )&#xA;  else&#xA;    LoadBase(AVendorHome, AVendorLib, AThreadSafe&#xA;{$IFNDEF FireDAC_IB_STATIC},&#xA;  {$IF DEFINED(MACOS) and not DEFINED(IOS)}&#xA;      // MacOSX: InterBase ToGo is preferred, and thus LIBIBTOGO has a higher priority&#xA;      [C_TOGO, C_GDS]&#xA;  {$ELSEIF DEFINED(IOS) or DEFINED(ANDROID)}&#xA;      // iOS, iOSSim, Android: no client/server, and thus no LIBGDS&#xA;      [C_TOGO]&#xA;  {$ELSE}&#xA;      // Windows: client/server is preferred over ToGo&#xA;      [C_GDS, C_TOGO]       &amp;lt;-- HERE&#xA;  {$ENDIF}&#xA;{$ENDIF}&#xA;  );&#xA;end;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Isn&#x27;t that strange? If I have &lt;code&gt;ibclient64.dll&lt;/code&gt;, why require &lt;code&gt;ibtogo64.dll&lt;/code&gt;?&#xA;Should I report this as a bug?&lt;/p&gt;&#xA;&lt;p&gt;And the next question is what the best solution is (assuming that &lt;code&gt;ibtogo64.dll&lt;/code&gt; is indeed not necessary). Distribute &lt;code&gt;ibtogo64.dll&lt;/code&gt; with my app as well &lt;sup&gt;*&lt;/sup&gt;, or hack the code to not include &lt;code&gt;C_TOGO&lt;/code&gt; in the array?&lt;/p&gt;&#xA;&lt;p&gt;That conditional define &lt;code&gt;FireDAC_IB_STATIC&lt;/code&gt; is set in &lt;code&gt;FireDac.Inc&lt;/code&gt; as:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{$IF DEFINED(IOS) and (DEFINED(CPUARM) or DEFINED(CPUARM64)) or DEFINED(ANDROID)}&#xA;  {$DEFINE FireDAC_IB_STATIC}            // Use IB driver static linking&#xA;  {$DEFINE FireDAC_IB_STATIC_IBBRAND}    // Use IbTogo static linking library&#xA;{$ENDIF}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Using that define would seem to &#x27;solve&#x27; the issue, were it not that the definition of &lt;code&gt;TIBLib.LoadBase&lt;/code&gt; changes. I&#x27;d probably open a can of worms trying to use that.&lt;/p&gt;&#xA;&lt;p&gt;&lt;sup&gt;* Actually , there are 3 DLLs in &lt;code&gt;c:\Users\Public\Documents\Embarcadero\Interbase\redist\InterBase2020\win64_togo\&lt;/code&gt;: &lt;code&gt;ibtogo64.dll&lt;/code&gt;, &lt;code&gt;ibxml64.dll&lt;/code&gt; and &lt;code&gt;ib_util64.dll&lt;/code&gt;&lt;/sup&gt;&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/75725583</id>
        <re:rank scheme="https://stackoverflow.com">0</re:rank>
        <title type="text">UTF8 in a Delphi DBMemo to/from an Interbase BLOB field</title>
            <category scheme="https://stackoverflow.com/tags" term="delphi" />
            <category scheme="https://stackoverflow.com/tags" term="unicode" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
        <author>
            <name>David Badke</name>
            <uri>https://stackoverflow.com/users/17235756</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/75725583/utf8-in-a-delphi-dbmemo-to-from-an-interbase-blob-field" />
        <published>2023-03-13T18:21:23Z</published>
        <updated>2023-03-17T03:08:54Z</updated>
        <summary type="html">
            &lt;p&gt;Summary: I am trying to work with UTF8 text in a TDBMemo to store, retrieve and display Greek letters from/to a BLOB subtype 0 field in an Interbase table. The Greek letters display correctly in the DBMemo but when posted to the database they are garbled, and display garbled when retrieved.&lt;/p&gt;&#xA;&lt;p&gt;Delphi 10.4, Interbase 2020, Windows 10&lt;/p&gt;&#xA;&lt;p&gt;I have a TDBMemo connected to a BLOB field in an Interbase table using FireDAC:&lt;/p&gt;&#xA;&lt;p&gt;TFDConnection --&amp;gt; TFDQuery --&amp;gt; TDataSource --&amp;gt; TDBMemo&lt;/p&gt;&#xA;&lt;p&gt;This is in a simple test program, with no event handlers attached to any component in the chain. The database table field is BLOB subtype 0 (i.e. binary). The data in the field displays correctly as text in the DBMemo if there are no UTF8 (Greek, Cyrillic, etc. - non-Latin) characters in it, and updates and retrieves the text correctly, and works correctly with any Latin alphabet with non-ASCII characters, like French, but all non-Latin UTF8 characters are garbled in the DBMemo and in the table field after posting changes. If I paste Greek letters into the DBMemo they display correctly (so the DBMemo is handling UTF8 correctly) but are garbled after a post to the table. The table field is a binary BLOB, which should store whatever is posted to it without changing the data. That means the text is not being kept as UTF8 somewhere along the chain from the DBMemo to the FDQuery - the text is being converted to an ANSI string.&lt;/p&gt;&#xA;&lt;p&gt;I have tried (using the ANSI to UTF8 functions) to stuff the DBMemo.Text into the table field directly - didn&#x27;t work. I have tried streaming the data from DBMemo.Text into the BLOB field (TStringStream --&amp;gt; TBLOBStream) - didn&#x27;t work. I have tried using a BLOB subtype 1 (text) field with explicit charset UTF8 instead of the binary BLOB - same result. Examining the data in the Delphi debugger immediately before the post shows the DBMemo.Text is correct. Displaying the text BLOB UTF8 field with isql shows it has been garbled in the table.&lt;/p&gt;&#xA;&lt;p&gt;There may be a problem with the BLOB text field in the table: if I try to update the field directly in IBConsole isql with&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;update biblio set greekfield = &#x1F21;&#x3BB;&#x3B9;&#x3BF;&#x3B4;&#x3C1;&#x3CC;&#x3BC;&#x3BF;&#x3C2;&#x27; where id=10793&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;update biblio set greekfield = cast(&#x27;&#x1F21;&#x3BB;&#x3B9;&#x3BF;&#x3B4;&#x3C1;&#x3CC;&#x3BC;&#x3BF;&#x3C2;&#x27; as varchar(2000) character set UTF8) where id=107937&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;it fails with &amp;quot;Cannot transliterate character between character sets&amp;quot;. But maybe that&#x27;s just IBConsole being silly.&lt;/p&gt;&#xA;&lt;p&gt;Since Delphi 10 is fully Unicode compliant - and so is Interbase 2020 - I expected Delphi to be able to handle the Greek UTF8 characters, at the very least when using an explicitly UTF text BLOB table field in Interbase. Obviously I am doing something wrong, but after several hours of trying everything I can think of I still can&#x27;t get it to work.&lt;/p&gt;&#xA;&lt;p&gt;Help!&lt;/p&gt;&#xA;&lt;p&gt;David&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/75213361</id>
        <re:rank scheme="https://stackoverflow.com">1</re:rank>
        <title type="text">Interbase 2020 crashes/loops</title>
            <category scheme="https://stackoverflow.com/tags" term="loops" />
            <category scheme="https://stackoverflow.com/tags" term="crash" />
            <category scheme="https://stackoverflow.com/tags" term="user-defined-functions" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
            <category scheme="https://stackoverflow.com/tags" term="guardian" />
        <author>
            <name>Matze</name>
            <uri>https://stackoverflow.com/users/6667677</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/75213361/interbase-2020-crashes-loops" />
        <published>2023-01-23T18:07:39Z</published>
        <updated>2023-02-09T03:13:25Z</updated>
        <summary type="html">
            &lt;p&gt;We use Interbase 2020 as production DB using UTF8 (approx 250 simultaneous user). With this database we have two main problems that we are not able to solve.&lt;/p&gt;&#xA;&lt;p&gt;In history we had a problem with an older udf-function that crashed our database because it was not ready for unicode string operation. As a result we changed to unicode compatible versions.&lt;/p&gt;&#xA;&lt;p&gt;The last few years sometimes we get hiccup (as we call it). In this case every client looses connection and the guardian restarts. The clients can connect again without us doing anything.&lt;/p&gt;&#xA;&lt;p&gt;The second problem is that sometimes the interbase does not crash but everyone looses the connection and it is not possible to reconnect (by client, or ibexpert for example). In this case we have to restart the whole server.&lt;/p&gt;&#xA;&lt;p&gt;These problems are occuring irregular. Most times it first starts with a hiccup. After a time (maybe two to ten hours later), the second problem arrives and we need to restart our database. If we are lucky we need to restart the server 2-3 times, on a bad day we need to restart the server more often as the second problem returns again and again (for example every 30 minutes).&lt;/p&gt;&#xA;&lt;p&gt;We are not yet able to locate this problem. It doesn&#x27;t matter if a user is connected to the database or just idling on weekends. It also often happens when nobody is connected.&lt;/p&gt;&#xA;&lt;p&gt;Even the server logs don&#x27;t give hints that helped us yet.&lt;/p&gt;&#xA;&lt;p&gt;-We minimized udf function use as low as possible, changed to newer udfs that support unicode etc.&#xA;-functions that crash the server (afaik) are guarded that they dont get for example invalid datetimes&#xA;-We update database server regularely to newest version&#xA;-also updated client dlls&#xA;-also updated connection components (IBDAC) &#x2B; Delphi 11.1&#xA;-wrote exception tracker in our client software (unfortunately there is only the connection lost error)&#xA;-regularely check active transactions if something hangs/loops/snapshot creation&lt;/p&gt;&#xA;&lt;p&gt;Do you have any information that we could use to solve our problems? Is there any possibility to get more info out of the log files (other log levels possible?)? We don&#x27;t want to log every procedure call if not necessary, but if there are no other options we need to..&lt;/p&gt;&#xA;&lt;p&gt;Thanks for your help!&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/74124069</id>
        <re:rank scheme="https://stackoverflow.com">0</re:rank>
        <title type="text">Firedac with Interbase some forms only updates database after closing appalication</title>
            <category scheme="https://stackoverflow.com/tags" term="delphi" />
            <category scheme="https://stackoverflow.com/tags" term="transactions" />
            <category scheme="https://stackoverflow.com/tags" term="firedac" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
        <author>
            <name>FvS</name>
            <uri>https://stackoverflow.com/users/20281639</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/74124069/firedac-with-interbase-some-forms-only-updates-database-after-closing-appalicati" />
        <published>2022-10-19T10:49:21Z</published>
        <updated>2022-10-21T06:36:30Z</updated>
        <summary type="html">
            &lt;p&gt;I&#x27;m using firedac with Delphi 10.3 with Interbase, when i use an update SQL statement in more forms it will work perfect.&lt;/p&gt;&#xA;&lt;p&gt;But in one form i do exact the same the table is not updated, but when i close the form and close the application the update is done to the database.&lt;/p&gt;&#xA;&lt;p&gt;I&#x27;m completely lost and i don&#x27;t know how this is possible.&lt;/p&gt;&#xA;&lt;p&gt;I found a part of the problem:&lt;/p&gt;&#xA;&lt;p&gt;When i use Commit it works, but when there is a open command between two update statements i need to use StartTransAction before the open en Commit after the open. Then the second update works:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;DM_IB.IBF_VHE.ExecSQL(&#x27;Update BB_ASML_FORECAST set Uren_Montage = 100, Uren_Berekend = &#x27;&#x27;Ja&#x27;&#x27; &#x27; &#x2B;&#xA;                        &#x27;where AANMAAK_DATUMTIJD = &#x27;&#x27;19-10-2022 10:12:38&#x27;&#x27; and ItemCode = &#x27;&#x27;4022.472.18632&#x27;&#x27; &#x27;) ;&#xA;&#xA;    DM_IB.IBF_VHE.Commit ;&#xA;&#xA;    ShowMessage(&#x27;1&#x27;) ; // Works no problems&#xA;&#xA;  MEM_VPA.DisableControls ;&#xA;  MEM_Fouten.DisableControls ;&#xA;&#xA;  Post_Confirm := False ;&#xA;&#xA;  Try&#xA;    MEM_VPA.Close ;&#xA;    MEM_VPA.Open ;&#xA;    MEM_VPA.EmptyTable ;&#xA;&#xA;    MEM_Fouten.Close ;&#xA;    MEM_Fouten.Open ;&#xA;    MEM_Fouten.EmptyTable ;&#xA;&#xA;    With TFDQuery.Create(nil) do&#xA;    Try&#xA;      Connection := DM_IB.IBF_VHE ;&#xA;      SQL.Text   := &#x27;select * from PL_CAPACITEIT_NPW where &#x27; &#x2B;&#xA;                    &#x27;(jaar = &#x27; &#x2B; FormatDateTime(&#x27;yyyy&#x27;, now()) &#x2B; &#x27; and &#x27; &#x2B;&#xA;                    &#x27;Weeknummer &amp;gt; &#x27; &#x2B; IntToStr(WeekofTheyear(Now())) &#x2B; &#x27;) or &#x27; &#x2B;&#xA;                    &#x27;(jaar = &#x27; &#x2B; FormatDateTime(&#x27;yyyy&#x27;, IncYear(Now())) &#x2B; &#x27; and &#x27; &#x2B;&#xA;                    &#x27;weeknummer &amp;lt; &#x27; &#x2B; IntToStr(52 - (52 - WeekofTheyear(Now()))) &#x2B; &#x27;) order by jaar, weeknummer&#x27; ;&#xA;    DM_IB.IBF_VHE.StartTransaction ; // when this line is nod add and the commit the update below is not working till i end the application&#xA;    Open ;&#xA;    DM_IB.IBF_VHE.Commit ;&#xA;&#xA;    DM_IB.IBF_VHE.StartTransaction ;&#xA;&#xA;    DM_IB.IBF_VHE.ExecSQL(&#x27;Update BB_ASML_FORECAST set Uren_Montage = 100, Uren_Berekend = &#x27;&#x27;Ja&#x27;&#x27; &#x27; &#x2B;&#xA;                        &#x27;where AANMAAK_DATUMTIJD = &#x27;&#x27;19-10-2022 10:12:38&#x27;&#x27; and ItemCode = &#x27;&#x27;4022.472.88135&#x27;&#x27; &#x27;) ;&#xA;&#xA;    DM_IB.IBF_VHE.Commit ;&#xA;&#xA;    ShowMessage(&#x27;2&#x27;) ; // Works only when de above open command is between a transacion.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Thanks in advice,&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/73996955</id>
        <re:rank scheme="https://stackoverflow.com">1</re:rank>
        <title type="text">How to debug Array DML FireDAC queries?</title>
            <category scheme="https://stackoverflow.com/tags" term="csv" />
            <category scheme="https://stackoverflow.com/tags" term="delphi" />
            <category scheme="https://stackoverflow.com/tags" term="firedac" />
            <category scheme="https://stackoverflow.com/tags" term="dml" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
        <author>
            <name>Surox</name>
            <uri>https://stackoverflow.com/users/9138731</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/73996955/how-to-debug-array-dml-firedac-queries" />
        <published>2022-10-08T12:23:20Z</published>
        <updated>2022-10-23T22:47:28Z</updated>
        <summary type="html">
            &lt;p&gt;I&#x27;m trying to insert values taken from a comma-seperated file into an Interbase SQL DB using Array DML. The Problem is, I&#x27;m having a plethora of issues with&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;arithmetic, numeric overflow or string truncation&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;errors when trying to execute the DML queries, which is most likely due to a loop going too far.&lt;/p&gt;&#xA;&lt;p&gt;While DML is faster than using conventional loops and pushing a query for each line of the file, it is hard for me to debug as I cannot see the queries being pushed at the end or during step-by-step debugging.&lt;/p&gt;&#xA;&lt;p&gt;Is there a method for viewing the queries being pushed? FDQuery doesn&#x27;t seem to offer this possibility as of now, so it&#x27;s hard for me to tell what went wrong during runtime.&lt;/p&gt;&#xA;&lt;p&gt;The csv file used can be found &lt;a href=&quot;https://pastebin.com/s5QbRWKA&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;, and here&#x27;s the code :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if FileExists(OpenDialog1.FileName) then&#xA;begin&#xA;  Strings := TStringList.Create;&#xA;  CurrentLine := TStringList.Create;&#xA;&#xA;  try&#xA;        Strings.Clear;&#xA;        Strings.LoadFromFile(OpenDialog1.FileName);&#xA;&#xA;        iArraySize := Strings.Count;&#xA;        FDQuery1.SQL.Text := &#x27;INSERT INTO tbl_post4 (lngpostid, strname, strdesc, ysnisdefault, memLabelList, memNotesText, lnggroupid, ysnisgroup, dtiCreated, dtiModified) VALUES(:p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8, :p9, :p10);&#x27;;&#xA;        FDQuery1.Params.ArraySize := iArraySize;&#xA;&#xA;           for m := 1 to Strings.Count - 1 do   //starting at second line of file since first is used for column names&#xA;           begin&#xA;              CurrentLine.Clear;&#xA;              Split(&#x27;,&#x27;, Strings[m], CurrentLine);&#xA;              for n := 0 to CurrentLine.Count - 1 do&#xA;              begin //  replace empty with space &amp;amp;&amp;amp; escape single quotes if found&#xA;                    if CurrentLine[n].IsEmpty then&#xA;                    begin&#xA;                      CurrentLine[n] := &#x27; &#x27;;&#xA;                    end;&#xA;                    if CurrentLine[n].Contains(&#x27;&#x27;&#x27;&#x27;) then&#xA;                    begin&#xA;                      CurrentLine[n] := StringReplace(CurrentLine[n], &#x27;&#x27;&#x27;&#x27;, &#x27;&#x27;&#x27;&#x27;&#x27;&#x27;, [rfReplaceAll, rfIgnoreCase]);&#xA;                    end;&#xA;&#xA;              end;&#xA;&#xA;              FDQuery1.Params[0].AsIntegers[m] := CurrentLine[0].ToInteger;&#xA;              FDQuery1.Params[1].AsStrings[m] := CurrentLine[1];&#xA;              FDQuery1.Params[2].AsStrings[m] := CurrentLine[2];&#xA;              FDQuery1.Params[3].AsBooleans[m] := CurrentLine[3].ToBoolean;&#xA;              FDQuery1.Params[4].AsStrings[m] := CurrentLine[4];&#xA;              FDQuery1.Params[5].AsStrings[m] := CurrentLine[5];&#xA;              FDQuery1.Params[6].AsIntegers[m] := CurrentLine[6].ToInteger;&#xA;              FDQuery1.Params[7].AsBooleans[m] := CurrentLine[7].ToBoolean;&#xA;              FDQuery1.Params[8].Values[m] := CurrentLine[8];&#xA;              FDQuery1.Params[9].Values[m] := CurrentLine[9];&#xA;&#xA;&#xA;           end; //end for m&#xA;&#xA;        FDConnection1.StartTransaction;&#xA;        FDQuery1.Execute(FDQuery1.Params.ArraySize);&#xA;        FDConnection1.CommitRetaining;&#xA;           &#xA;        ShowMessage(&#x27;Data imported&#x27;);&#xA;        CurrentLine.Free;&#xA;        Strings.Free;&#xA;  except&#xA;     on E : Exception do&#xA;        begin&#xA;          ShowMessage(E.Message);&#xA;          FDConnection1.RollbackRetaining;&#xA;          FDConnection1.Commit;&#xA;          CurrentLine.Free;&#xA;          Strings.Free;&#xA;        end;&#xA;&#xA;  end;&#xA;  FDConnection1.Commit;&#xA;&#xA;  end&#xA;  else&#xA;  begin&#xA;     raise Exception.Create(&#x27;File does not exist.&#x27;);&#xA;  end;&#xA;&#xA;&#xA;&#xA;  // split function for reference&#xA;  procedure Split(Delimiter: Char; Str: string; ListOfStrings: TStrings) ;&#xA;  begin&#xA;      ListOfStrings.Clear;&#xA;      ListOfStrings.Delimiter       := Delimiter;&#xA;      ListOfStrings.StrictDelimiter := True; // Requires D2006 or newer.&#xA;      ListOfStrings.DelimitedText   := Str;&#xA;  end;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/73842408</id>
        <re:rank scheme="https://stackoverflow.com">2</re:rank>
        <title type="text">RAD Server Lite does not install on Linux</title>
            <category scheme="https://stackoverflow.com/tags" term="linux" />
            <category scheme="https://stackoverflow.com/tags" term="delphi" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
            <category scheme="https://stackoverflow.com/tags" term="rad-server" />
        <author>
            <name>JRG</name>
            <uri>https://stackoverflow.com/users/8617579</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/73842408/rad-server-lite-does-not-install-on-linux" />
        <published>2022-09-25T06:13:45Z</published>
        <updated>2022-10-21T18:53:24Z</updated>
        <summary type="html">
            &lt;p&gt;When installing Delphi RAD Server Lite on Linux CentOS 7 (RH 7 like), I get an error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;[FireDAC][Phys][IB]-314. Cannot load vendor library [libgds.so or libibtogo.so]&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Steps taken :&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Installed Delphi 11.2 on Windows 10 machine --&amp;gt; OK&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Configured PAServer for Linux CentOS 7 -- &amp;gt; OK&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Copied EMS files&#xA;from &lt;code&gt;C:\Program Files (x86)\Embarcadero\Studio\22.0\EMSServer&lt;/code&gt;&#xA;to Linux server and run &lt;code&gt;sudo ./ems_install&lt;/code&gt; --&amp;gt; OK&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Copied Interbase IBToGo files from&#xA;&lt;code&gt;C:\Users\Public\Documents\Embarcadero\Interbase\redist\InterBase2020\linux64_togo&lt;/code&gt; to Linux server &lt;code&gt;/usr/lib/ems/&lt;/code&gt; --&amp;gt; OK&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Downloaded RAD Server Lite license from&#xA;&lt;a href=&quot;https://reg.embarcadero.com/srs6/promotion.jsp?promoId=572&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://reg.embarcadero.com/srs6/promotion.jsp?promoId=572&lt;/a&gt; --&amp;gt; OK&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Copied license file to Linux server &lt;code&gt;/usr/lib/ems/interbase/license&lt;/code&gt; --&amp;gt; OK&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Started EMS server, first time run for setup, in Linux server&#xA;&lt;code&gt;sudo ./EMSDevServerCommand -setup&lt;/code&gt; ===&amp;gt; FAILED !!&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;After confirming the questions, the final result was an error message and EMSServer was not installed properly, see the results of &lt;code&gt;./EMSDevServerCommand&lt;/code&gt; :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;gt;start&#xA;EMS server configuration file not found. Run the configuration wizard?(y)&#xA;Set up Options &#xA;Server Instance ()? &#xA;DB file name (emsserver.ib)? &#xA;DB file directory (/usr/lib/ems)? &#xA;Sample data(y) &#xA;Console User (consoleuser)?&#xA;Console Password (consolepass)?&#xA;----------------------------&#xA;Set up Options&#xA;Server Instance: &amp;lt;default&amp;gt;&#xA;DB file name: emsserver.ib&#xA;DB file directory: /usr/lib/ems&#xA;Sample data: True&#xA;Console User: consoleuser&#xA;Console Password: consolepass&#xA;DB file: /usr/lib/ems/emsserver.ib&#xA;Configuration file: /etc/ems/emsserver.ini&#xA;----------------------------&#xA;&#xA;-  Continue with these options?(y)&#xA;&#xA;- An error occurred when trying to load your InterBase license. Verify that you have entered&#xA;  valid connection parameters for the new database. Also verify that the Interbase server&#xA;  instance is running. [FireDAC][Phys][IB]-314. Cannot load vendor library [libgds.so or&#xA;  libibtogo.so]. Hint: check it is in the PATH or application EXE directories, and has x64&#xA;  bitness.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/73614001</id>
        <re:rank scheme="https://stackoverflow.com">0</re:rank>
        <title type="text">Installing IBConsole on client PC</title>
            <category scheme="https://stackoverflow.com/tags" term="installation" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
        <author>
            <name>Mark</name>
            <uri>https://stackoverflow.com/users/8425066</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/73614001/installing-ibconsole-on-client-pc" />
        <published>2022-09-05T19:38:38Z</published>
        <updated>2023-01-18T16:58:50Z</updated>
        <summary type="html">
            &lt;p&gt;Does anyone know if it&#x27;s possible to install IBConsole on a client PC and then connect to the server (in LAN)?&lt;/p&gt;&#xA;&lt;p&gt;I installed Interbase 2020 on my server together with IBConsole; all working fine.&lt;/p&gt;&#xA;&lt;p&gt;I have been searching everywhere how to install IBConsole on my desktop but cannot seem to find anything. A &amp;quot;Client Only&amp;quot; installation of Interbase didn&#x27;t install it either.&lt;/p&gt;&#xA;&lt;p&gt;Is it possible/allowed to do this and if so, how?&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/73442955</id>
        <re:rank scheme="https://stackoverflow.com">0</re:rank>
        <title type="text">Equivalent of Firebird &quot;when any&quot; for SQL exception trapping in InterBase</title>
            <category scheme="https://stackoverflow.com/tags" term="exception" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
            <category scheme="https://stackoverflow.com/tags" term="sqlcode" />
        <author>
            <name>Giovanni Brambilla</name>
            <uri>https://stackoverflow.com/users/9504921</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/73442955/equivalent-of-firebird-when-any-for-sql-exception-trapping-in-interbase" />
        <published>2022-08-22T09:31:58Z</published>
        <updated>2022-09-02T00:11:44Z</updated>
        <summary type="html">
            &lt;p&gt;I need to extend an app written with Embarcadero Firemonkey for Windows to Android, so I need InterBase.&lt;/p&gt;&#xA;&lt;p&gt;Besides there is no tutorial (none found so far at least) on how to use Firebird under Android, I have found a very important difference not only in the language itself, but in the way I can trap exceptions with Firebird and InterBase (i.e. into an insert stored procedure).&#xA;Here is a sample Firebird code:&lt;/p&gt;&#xA;&lt;pre class=&quot;lang-sql prettyprint-override&quot;&gt;&lt;code&gt;ALTER PROCEDURE AD_0_LIST_UPD_ORDER (&#xA;AD_0_NAME VARCHAR(20),&#xA;AD_0_ORDER INTEGER)&#xA;RETURNS (N_ERROR INTEGER)&#xA;AS&#xA;begin&#xA;   n_error=0;&#xA;   begin&#xA;      update ad_0_list&#xA;            set ad_0_order = :ad_0_order&#xA;          where (ad_0_name = :ad_0_name);&#xA;      when any do begin&#xA;        n_error=sqlcode;&#xA;        exit;&#xA;      end&#xA;   end&#xA;end^&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What&#x27;s beautiful in those few lines (&lt;code&gt;when any ...&lt;/code&gt;) is that I have an exception that traps any SQL error, while in InterBase I have to (imagine) and write situations like -803, -625, theoretically from -1  to  -999 for every procedure.&lt;/p&gt;&#xA;&lt;p&gt;I can&#x27;t fine a way to translate it. Is there a way to do this in InterBase?&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/73021954</id>
        <re:rank scheme="https://stackoverflow.com">-2</re:rank>
        <title type="text">The char* fn_Substr(char* s, short m, short n) function does not return the correct value</title>
            <category scheme="https://stackoverflow.com/tags" term="c&#x2B;&#x2B;" />
            <category scheme="https://stackoverflow.com/tags" term="c&#x2B;&#x2B;builder" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
        <author>
            <name>IMeMine</name>
            <uri>https://stackoverflow.com/users/2783887</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/73021954/the-char-fn-substrchar-s-short-m-short-n-function-does-not-return-the-corr" />
        <published>2022-07-18T11:57:21Z</published>
        <updated>2022-07-22T16:27:29Z</updated>
        <summary type="html">
            &lt;p&gt;I am developing a &lt;em&gt;user defined function&lt;/em&gt; dll &lt;strong&gt;ib_udf64cpp.dll&lt;/strong&gt; to my &lt;strong&gt;InterBase 2020&lt;/strong&gt; database.&lt;/p&gt;&#xA;&lt;p&gt;I am using &lt;strong&gt;Embarcadero C&#x2B;&#x2B; Builder Alexandria 11.1&lt;/strong&gt; to develop and test the functions exported from the &lt;strong&gt;ib_udf64cpp.dll&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The code of the exported &lt;code&gt;fn_SubStr(...)&lt;/code&gt; function from the &lt;strong&gt;ib_udf64cpp.dll&lt;/strong&gt; is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/*===============================================================&#xA; fn_SubStr(s, m, n) - Returns the substr starting m ending n in s.&#xA;================================================================= */&#xA;char* EXPORT fn_SubStr(char* s,&#xA;                short m, /* starting position */&#xA;                short n) /* ending position */&#xA;{&#xA;    short i = 0;&#xA;    short j = 0;&#xA;    char buffer = (char *)ib_util_malloc(256);&#xA;&#xA;    if (m &amp;gt; n || m &amp;lt; 1 || n &amp;lt; 1)&#xA;        return &amp;quot;Bad parameters: m, n in substring&amp;quot;;&#xA;    else&#xA;        {&#xA;            while (*s &amp;amp;&amp;amp; i&#x2B;&#x2B; &amp;lt; m-1) /* skip */&#xA;                s&#x2B;&#x2B;;&#xA;&#xA;            while (*s &amp;amp;&amp;amp; i&#x2B;&#x2B; &amp;lt;= n)  /* copy */&#xA;                buffer[j&#x2B;&#x2B;] = *s&#x2B;&#x2B;;&#xA;&#xA;            buffer[j] = &#x27;\0&#x27;;&#xA;&#xA;            return buffer;&#xA;        }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This function uses the &lt;code&gt;ib_util_malloc(256)&lt;/code&gt; function from InterBase 2020 API to initialize the &lt;code&gt;char* buffer&lt;/code&gt; variable.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;UDFs must allocate memory using &lt;code&gt;ib_util_malloc()&lt;/code&gt; rather than static arrays in order to be thread-safe&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;When I debug the code of this function with:&#xA;&lt;code&gt;s = &amp;quot;1234567890&amp;quot;;  m = 2; n = 7&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I get the following value of &lt;code&gt;buffer = 0x0000000000894690 &amp;quot;234567&amp;quot;&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The main program &lt;code&gt;DLLDebugger&lt;/code&gt; used to debug the &lt;strong&gt;ib_udf64cpp.dll&lt;/strong&gt; has the following code:&#xA;&lt;em&gt;(Note: InterBase recommends to use the &lt;code&gt;cdecl&lt;/code&gt; calling convention.)&lt;/em&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;//---------------------------------------------------------------------------&#xA;&#xA;#include &amp;lt;vcl.h&amp;gt;&#xA;#pragma hdrstop&#xA;#include &amp;lt;stdlib.h&amp;gt;&#xA;#include &amp;lt;libloaderapi.h&amp;gt;&#xA;#include &amp;quot;ufrmDLLDebugger.h&amp;quot;&#xA;#include &amp;quot;uIB_UDF64cpp.h&amp;quot;&#xA;#pragma comment (lib, &amp;quot;ib_udf64cpp.a&amp;quot;)&#xA;//---------------------------------------------------------------------------&#xA;#pragma package(smart_init)&#xA;#pragma resource &amp;quot;*.dfm&amp;quot;&#xA;#pragma comment(lib, &amp;quot;ib_udf64cpp&amp;quot;)&#xA;&#xA;TfrmDLLDebugger *frmDLLDebugger;&#xA;&#xA;const wchar_t* ib_udf64cpp_dll = L&amp;quot;d:/MyFiles/Database/IB_UDF64C/Cpp/Win64/Debug/ib_udf64cpp.dll&amp;quot;;&#xA;&#xA;extern &amp;quot;C&amp;quot; __declspec(dllimport) char*  __cdecl fn_SubStr(char*, short, short);&#xA;typedef char   (*SUBSTR)(AnsiString, ShortInt, ShortInt);&#xA;&#xA;SUBSTR      fnc_SubStr;&#xA;&#xA;//---------------------------------------------------------------------------&#xA;__fastcall TfrmDLLDebugger::TfrmDLLDebugger(TComponent* Owner) : TForm(Owner)&#xA;{&#xA;}&#xA;//---------------------------------------------------------------------------&#xA;void __fastcall TfrmDLLDebugger::btnExecutarUDFClick(TObject *Sender)&#xA;{&#xA;    int m, n;&#xA;    AnsiString astr;&#xA;&#xA;    HINSTANCE dllhandle = LoadLibrary(ib_udf64cpp_dll);&#xA;&#xA;    if (dllhandle == NULL)&#xA;    {&#xA;        ShowMessage(&amp;quot;Error: The library ib_udf64cpp.dll was not loaded!&amp;quot;);&#xA;    }&#xA;    else&#xA;    { switch(rdgSelUDF-&amp;gt;ItemIndex)&#xA;        {&#xA;         case -1 : ShowMessage(&amp;quot;Select one of the UDFs.&amp;quot;);&#xA;                             break;&#xA;&#xA;         case  3 : {fnc_SubStr = (SUBSTR)GetProcAddress(dllhandle, &amp;quot;fn_SubStr&amp;quot;);&#xA;                             if (Trim(edS-&amp;gt;Text) == &amp;quot;&amp;quot;)&#xA;                             {&#xA;                                 ShowMessage(&amp;quot;The [s:] field is empty&amp;quot;);&#xA;                                 break;&#xA;                             }&#xA;&#xA;                             if (Trim(edM-&amp;gt;Text) == &amp;quot;&amp;quot;)&#xA;                             {&#xA;                                 ShowMessage(&amp;quot;The [m:] field is empty.&amp;quot;);&#xA;                                 break;&#xA;                             }&#xA;                             if (Trim(edN-&amp;gt;Text) == &amp;quot;&amp;quot;)&#xA;                             {&#xA;                                 ShowMessage(&amp;quot;The [n:] field is empty.&amp;quot;);&#xA;                                 break;&#xA;                             }&#xA;                             astr = AnsiString(edTexto-&amp;gt;Text);&#xA;                             m = StrToInt(edM-&amp;gt;Text);&#xA;                             n = StrToInt(edN-&amp;gt;Text);&#xA;                             astr = fnc_SubStr(astr, m, n);&#xA;                             lblResult-&amp;gt;Caption = astr;&#xA;                             break;}&#xA;     }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;The returned value of &lt;code&gt;fn_Substr()&lt;/code&gt; assigned to &lt;code&gt;lblResult-&amp;gt;Caption&lt;/code&gt; should be &amp;quot;234567&amp;quot; instead of &amp;quot;`&amp;quot;.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;How can I assign the correct returned value of &lt;code&gt;buffer&lt;/code&gt; from &lt;code&gt;fn_Substr(s, m, n)&lt;/code&gt; to the &lt;code&gt;lblResult-&amp;gt;Caption&lt;/code&gt;?&lt;/strong&gt;&lt;/p&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/72714410</id>
        <re:rank scheme="https://stackoverflow.com">1</re:rank>
        <title type="text">With php ibase is there any way of returning to the first row after reading several rows (to avoid re-querying the database)</title>
            <category scheme="https://stackoverflow.com/tags" term="php" />
            <category scheme="https://stackoverflow.com/tags" term="firebird" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
        <author>
            <name>RAD</name>
            <uri>https://stackoverflow.com/users/14190905</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/72714410/with-php-ibase-is-there-any-way-of-returning-to-the-first-row-after-reading-seve" />
        <published>2022-06-22T11:06:56Z</published>
        <updated>2022-10-02T10:54:36Z</updated>
        <summary type="html">
            &lt;p&gt;With php ibase, ibase_query fetches the relation, several functions can then fetch rows from that relation, but all these functions extract &lt;strong&gt;the next row&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;In Delphi I have the ability to return to the first row (&lt;code&gt;DataSet.First;&lt;/code&gt;) - is there any equivalent in PHP ibase?&lt;/p&gt;&#xA;&lt;p&gt;I could of course re-query the database, but this seems a waste of resources if the original relation is still accessible.&lt;/p&gt;&#xA;&lt;p&gt;Example code:&lt;/p&gt;&#xA;&lt;pre class=&quot;lang-php prettyprint-override&quot;&gt;&lt;code&gt;$table = ibase_query($sql);&#xA;$row = ibase_fetch_object($table);&#xA;&#xA;while (!empty($row))&#xA;{&#xA;    echo $row-&amp;gt;ENTRYNO.&#x27;&amp;lt;br&amp;gt;&#x27;;&#xA;    $row = ibase_fetch_object($table);&#xA;}&#xA;&#xA;//The missing functionality&#xA;$table.First;     &#xA;//or maybe&#xA;$row = ibase_fetch_object($table,first);  &#xA;     //in which case of course the following line would be redundant&#xA;&#xA;&#xA;$row = ibase_fetch_object($table);&#xA;while (!empty($row))&#xA;{&#xA;    //process record&#xA;&#xA;    $row = ibase_fetch_object($table);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;
        </summary>
    </entry>
    <entry>
        <id>https://stackoverflow.com/q/72627295</id>
        <re:rank scheme="https://stackoverflow.com">0</re:rank>
        <title type="text">Create ASC and DESC INDEX in in one index</title>
            <category scheme="https://stackoverflow.com/tags" term="sql" />
            <category scheme="https://stackoverflow.com/tags" term="indexing" />
            <category scheme="https://stackoverflow.com/tags" term="interbase" />
            <category scheme="https://stackoverflow.com/tags" term="interbase-2009" />
        <author>
            <name>Hans van der Rijst</name>
            <uri>https://stackoverflow.com/users/14587808</uri>
        </author>
        <link rel="alternate" href="https://stackoverflow.com/questions/72627295/create-asc-and-desc-index-in-in-one-index" />
        <published>2022-06-15T07:18:24Z</published>
        <updated>2022-07-09T05:28:30Z</updated>
        <summary type="html">
            &lt;p&gt;I want to create an index (in Delphi/Interbase) which contained a ASC and a DESC order.&lt;/p&gt;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;CREATE INDEX AMUT_DAT ON ARTIKMUT(DATUM,ARTIKEL,KODE);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This create DATUM and ARTIKEL ascending.&lt;/p&gt;&#xA;&lt;p&gt;When I create it as follow:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;CREATE DESCENDING INDEX AMUT_DAT ON ARTIKMUT(DATUM,ARTIKEL,KODE);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;then the field DATUM is ASCENDING, but also the ARTIKEL.  I want DATUM descending and ARTIKEL ascending.&lt;/p&gt;&#xA;&lt;p&gt;I tried:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;CREATE INDEX AMUT_DAT ON ARTIKMUT([DATUM] DESC,[ARTIKEL] ASC,[KODE] ASC);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But that does not work.&lt;/p&gt;&#xA;&lt;p&gt;How can I create such an index in Interbase?&lt;/p&gt;&#xA;
        </summary>
    </entry>
</feed>