Jump to content
Registration disabled at the moment Read more... ×

Brian Evans

Members
  • Content Count

    426
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Brian Evans

  1. Brian Evans

    Do you need an ARM64 compiler for Windows?

    Microsoft has in the past put large amounts of resources into the 'next big thing' followed by it being abandoned. Chasing them is a path to ruin for any smaller companies. Even good products get poor support when they decide to chase something else. Windows Phone 7, 8 and 10, and Windows RT all on ARM and all now deprecated dead ends for example. Or the whole UWP / UWA mess where it seems to be on the way out then comes back. Not a very stable base for third party support. Not sure it is worth chasing ARM64 yet.
  2. Brian Evans

    Interbase VAR Licence and Demos or Free Versions

    Gave up on this decades ago and used FlashFiler then NexusDB instead. Mainly for the ease of going from single user embedded to multi-user client/server without licensing issues. Note for single user applications higher editions of Delphi come with redistribution rights for IBLite and IBToGo. It's only multiuser that needs server licensing that can cause issues for some sales models like yours.
  3. Brian Evans

    Amazon Linux 2

    I would not have PAServer accessible on a public IP. Since you are already connecting by SSH I would suggest a SSH tunnel which redirects a local port to a remote port over a SSH connection.
  4. Brian Evans

    problem upgrading to Delphi 11.1 Patch 1

    The zip file came from another computer (the Internet) and is probably marked as such. Perhaps some copied files are getting the flag set in some circumstances? Try checking the unblock checkbox before extracting/copying.
  5. Brian Evans

    sqlmemtable

    FireDac has Local SQL (FDLocalSQL) which can be used to run SQL against TDataSets. Uses SQLite underneath the hood with some extra bits. Using with some FDMemTable components would keep it all in memory. Local SQL (FireDAC) - RAD Studio (embarcadero.com)
  6. Brian Evans

    sql query

    There is no built-in query editor in Delphi for TDataSet descendants. Some third party components provide them and some include being able to run the query. One example is FireDac where it accessed by double left clicking or right clicking the component. The dbGo components provide no such editor.
  7. Brian Evans

    Analyze strings for common parts

    A lot of SQL is executed with parameters which would be a much easier to use form of the data than logs containing SQL with values inline. It also reduces clutter as static values show up as such vs looking the same as a parameter that might change. Where are these logs coming from? Can they be updated to log SQL + parameter value list?
  8. Brian Evans

    suppress connection killed/ gone away dialog

    Likely the reconnect failed and latter on after the error dialog is closed the connection gets opened again and the application continues on. A FDConnection has some events to give you a chance to handle exceptions or log what is happening: OnError, OnLogin, OnLost, OnRecover and OnRestored. If you add some logging to OnLost with a timestamp you should be able to tell what is going on and when.
  9. A quick look at the file (searched Bing for the 2022VAERSDATA.csv) and it looks like double quotes within a string field are escaped with a double quote. As well only string fields that contain commas or double quotes appear to be enclosed in double quotes. Will take a more detailed look when I get a chance. LOAD DATA local INFILE 'c:/programdata/mysql/mysql server 8.0/uploads/2022VAERSDATA.csv' INTO TABLE data CHARACTER SET latin1 FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '"' IGNORE 1 LINES
  10. The MySQL LOAD DATA statement can certainly handle all of that not sure why you think otherwise? MySQL :: MySQL 5.7 Reference Manual :: 13.2.6 LOAD DATA Statement The [{FIELDS | COLUMNS} [TERMINATED BY 'string'] [[OPTIONALLY] ENCLOSED BY 'char'] [ESCAPED BY 'char'] can handle double quotes. The SET col_name={expr | DEFAULT} section can be used for date, Boolean or other field conversions as needed.
  11. I tend to move it all into a DataModule (one per thread type/definition) so it ends up under an instance variable for that namespace wise.
×