Jump to content

Hans J. Ellingsgaard

Members
  • Content Count

    81
  • Joined

  • Last visited

Posts posted by Hans J. Ellingsgaard


  1. 5 hours ago, Columbo said:

    When I run the program it says 'Connection established'.  The error comes when it tries to retrieve data from the table DAT2.  The error says 'no such table.'

     

    That should mean it is Ok with spaces in the path, but AFAIK SQLite is a file based db, not a RDBMS, so just to be 100% safe, I would try to place the db file in a path without spaces.


  2. On 11/30/2023 at 8:32 PM, Columbo said:

    SQLConnection1.Params.Add('D:Delphi 11 Community\My Projects\Connecting to SQLite\Data\dat2.sqlite');

    You have a connection path with spaces, are you shure the db component can handle spaces? Not all do.


  3. The problem is your join in the query. Sometimes FireDAC is smart enough to write an update script that's ignoring the join fields, but if not, then you have to write the update query yourself. If I remember correctly there is a description of how to do it in Cary Jensen's book. ( I saw you mentioned it in an another post)


  4. 3 hours ago, limelect said:

    FDMemTable1.CloneCursor(ProjectsFDTable);<< 

    Have you tried using a FDQuery with a where clause, where you select just one record, instead of a FDtable component?


  5. 18 hours ago, limelect said:

    The strange behavior is now on insert where I cannot pinpoint the 

    problem. I am not sure where is the problem yet.

    Do you use a FDQuery for insert? If that's the case do you hava a "select * from" in the sql command, or do you use an "insert into command"?

    You could try to write a direct insert command and use a FDCommand component to see wath's happening.


  6. 4 hours ago, limelect said:

    @Hans J. Ellingsgaardmaybe it is feasible for a search but not for insert where I have that problem too.

    While searching for a solution on searach I found that if I have an EMPTY text to search I get a memory problem

    Is that search based on a table component? If that's the case you'll end up loading all records into memory. You can instead make a search with a query and a where clause.


  7. My guess is that your tables has a lot of records, or each of your records holds a lot of data, and when you opens it, with a table or query, you get all the records into memory.

     

    If that's the case, you will need to limit the number of records with a where clause in your query. You could also limit the number of fields for each record in an overview, and then select all fields only for an active record.


  8. You can usa an API like https://www.ipify.org to get your public ipaddress.

     

    When that is said, this sound strange. Do you have a printer that can be called directly with a public ipaddress, do you not have a vpn or some other secure connection to the office network?

×