2023.02.20 02:00 AM
Hi, Masters:
2023.02.20 02:55 AM
Why do you have `$dbpath, ";" ? If dbpath is "db" then that would explain why you are seeing a "db;" directory.
This way, the sym file from this operation is created in the "db;" directory, and the symbol indices in the table will point to this new sym file. You can't swap in and out sym files with each other if there are existing symbol references to it, because then they will point to the wrong symbol. Instead you could load the "wrong" sym file, de-enumerate the symbol columns, and then call .Q.en again but this time with the correct database path.
2023.02.20 02:55 AM
Why do you have `$dbpath, ";" ? If dbpath is "db" then that would explain why you are seeing a "db;" directory.
This way, the sym file from this operation is created in the "db;" directory, and the symbol indices in the table will point to this new sym file. You can't swap in and out sym files with each other if there are existing symbol references to it, because then they will point to the wrong symbol. Instead you could load the "wrong" sym file, de-enumerate the symbol columns, and then call .Q.en again but this time with the correct database path.
2023.02.20 03:59 AM
Hi, gyorokpeter-kx: Thanks! you're right. It's stupid that add a ";" at the end of "dbpath". It's works fine now!
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.