Jump to content

limelect

Members
  • Content Count

    924
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by limelect

  1. limelect

    SQL problem

    @haentschman can you plz try on my demo? the zip is in this communication. Otherwise, I am too tired of trying solutions. 1 solution too many
  2. limelect

    SQL problem

    @haentschman put it in my demo and checked it in 3 lines to change that it
  3. limelect

    SQL problem

    @haentschman why don't you guys try this on my demo?? does not work FDQuery1.SQL.Text := 'select * from Files where MainDirectory LIKE :Code'; FDQuery1.ParamByName('code').AsString := '%G:\Delphi Projects\DelphiArea\DelphiComponenets\simplegraphxx%'; FDQuery1.Open; PLZ stop guessing
  4. limelect

    SQL problem

    @haentschman I do not see how it applies to my case furthermore doing too much with SQL in my a[pplication have a lot of memory problems. My solution, for the time being, is to split LIKE and Lars Fosdal sugestion INSTR I could not use the statement FDQuery1.SQL.add('WHERE (MainDirectory LIKE ''%' + Edit1.Text + '%'') OR INSTR(''' + Edit1.Text + ''', MainDirectory) > 0' ); As it gives me memory problems.
  5. limelect

    SQL problem

    Error I put a zip test do not guess
  6. limelect

    SQL problem

    @tgbs There is a test source (zip)very simple to change in the source did you try it?
  7. limelect

    SQL problem

    For the time being, I will give the user a choice like or INSTR which will solve my memory problem. Until I will come up with a different coise
  8. limelect

    SQL problem

    no, since it gives me other problems.
  9. limelect

    SQL problem

    @Attila Kovacs Well thanks but you still use not nice words. P.S did you start with D1 like me? And much much before.
  10. limelect

    SQL problem

    Well, it returns me to my original problem OUT OF MEMORY. I made a crazy software. In any case, you helped a lot.Thanks
  11. limelect

    SQL problem

    @Lars Fosdal BIG BIG THANKS FDQuery1.SQL.add('WHERE (MainDirectory LIKE ''%' + Edit1.Text + '%'') OR INSTR(''' + Edit1.Text + ''', MainDirectory) > 0' ); I will check it on the real software
  12. limelect

    SQL problem

    Delete some chare and it WII NOT find part of the text The Like finds if you delete some char INTR find if you add char maybe i will try to OR both
  13. limelect

    SQL problem

    Maybe I will clarify my problem I add the base directory to the database. But this directory has many subdirectories and if one searches for a subdirectory he still needs to find the main directory. This is why my search is like that. Do you think there is another way to solve the problem?
  14. limelect

    SQL problem

    yes just add a few characters to the text and it will not find the item (a record) and this is what I want or delete some text and it will find see my first writings WITHIN my DB text
  15. limelect

    SQL problem

    @Lars Fosdal OK I put a very simple 1 line database with "like" statement So check it out. Add or delete text and see for yourself Compiled with D10.2.3 with source TestLike.zip
  16. limelect

    SQL problem

    @Attila Kovacs It is not a nice response. You do not know my application and my professional reasoning.
  17. limelect

    SQL problem

    @Attila Kovacs Reasons for my application
  18. limelect

    SQL problem

    @Lars Fosdal YES
  19. limelect

    SQL problem

    @Lars Fosdal Unfortunately all those 'like' explanations are known to me Or would you like me to make a small DB source to examine the problem? and put it here?
  20. limelect

    SQL problem

    @Lars Fosdal I invite you to enter my computer and see for yourself with our private communication
  21. limelect

    SQL problem

    @Lars Fosdal this F7 full statement output that works 'Select SectionsId,MainDirectory,MyDateTime,ProjectName,ProjectrealName,Category,FileMask ,Description,FilesIndex'#$D#$A'from Files,Projects'#$D#$A'WHERE MainDirectory LIKE ''%G:\Delphi Projects\image32_3.2.2%''AND SectionsId=FilesIndex' As you see no problem
  22. limelect

    SQL problem

    @Lars Fosdal NO escape but i see there are 2 more possibilities SUBSTRING and containing from containing does not work unless i do not know how to use it
  23. limelect

    SQL problem

    As i can see there is a 'SUBSTRING' so how to use it?
  24. limelect

    Huge memory problem

    I need your advice returning to my problem -out of memory. I have this free program https://limelect.com/downloads/document-projects/ that came out of my need. After 40+years of pascal/Delphi, I have a large number of projects/programs I do not even remember their content categories and more. The record includes text category pictures and more describing the source and program. Just started and I have 730 records with a 1.56 GB database (FireDac) size. So fixing the software does not seem to have an option? My DB file will grow to be very large. 1. I suspect I will have thousands of records 2 What is the theoretical size FireDac can handle? 3. Is it possible to fix my program with software? 4. I was thinking of splitting the DB. 5. Can the DB be manipulated on disk and not on RAM? 6. I am looking for a solution that will NOT cost money as it is a free program. 7. Installing other software like MS SQLserver is not an option. 8. I need a local/or any solution. 9. On a commercial program I have in a company I use MS SQLserver 2008 without any problems. Years of work and no problems. What are my options? Or what is my thinking wrong? Sorry if my need is too long.
  25. limelect

    Huge memory problem

    For now, everything works. I will work with the program for weeks and see what happens.
×