DataDigger icon indicating copy to clipboard operation
DataDigger copied to clipboard

Please add an export as SQL option

Open RichardBrookhuis opened this issue 2 years ago • 3 comments

Would you be so kind to add an option to export as SQL insert statements, in wDump.w? (besides csv/excel/html/4gl etc) Like so: insert into pub.tablename (fields_here) values (values_here); You would have to export dates as string in iso ymd format and logicals as 1/0, don't know if there is more to deal with. Documentation about how to handle array fields can be found here: https://community.progress.com/s/article/P36936

RichardBrookhuis avatar Jul 06 '22 08:07 RichardBrookhuis

Hallo Richard,

Dank voor je vraag en leuk dat je DD gebruikt. Volgens mij praat je net zo goed Nederlands als ik (if not, let me know) dus ga ik zo verder.

SQL statements lijkt me een nuttige toevoeging, dus dat ga ik op de roadmap zetten. Kan zijn dat ik er nog bij je op terugkom of je iets voor me kan testen als dat goed is.

Gr Patrick Tingen

Op wo 6 jul. 2022 10:29 schreef RichardBrookhuis @.***>:

Would you be so kind to add an option to export as SQL insert statements, in wDump.w? (besides csv/excel/html/4gl etc) Like so: insert into pub.tablename (fields_here) values (values_here); You would have to export dates as string in iso ymd format and logicals as 1/0, don't know if there is more to deal with. Documentation about how to handle array fields can be found here: https://community.progress.com/s/article/P36936

— Reply to this email directly, view it on GitHub https://github.com/patrickTingen/DataDigger/issues/96, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABN3AHKFQP2ZVH5SAXZEW5LVSU7UVANCNFSM52Y3YSDA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

patrickTingen avatar Jul 07 '22 14:07 patrickTingen

Hoi Patrick,

ik wil met alle plezier testen!

RichardBrookhuis avatar Jul 07 '22 15:07 RichardBrookhuis

Hoi Richard,

Bijgevoegd een eerste versie van de SQL-dump, zou je eens kunnen kijken of deze werkt?

Je kan de .w file zo in de DataDigger folder zetten, bij het opstarten zal DD zelf weer alles compileren. Als het goed is heb je in het dump-scherm nu de optie voor SQL Inserts erbij gekregen:

[image: image.png]

Van de afhandeling van character-extents weet ik niet of dat goed is. De elementen van een extent moeten worden gescheiden door een puntkomma, maar wat te doen als er een puntkomma in de waarde staat? Ik gok dat het dan tussen quotes moet, ik kan het ook niet helemaal terugvinden in de knowledgebase of in de Progress docu.

Met vriendelijke groet, Patrick Tingen

Op do 7 jul. 2022 om 17:40 schreef RichardBrookhuis < @.***>:

Hoi Patrick,

ik wil met alle plezier testen!

— Reply to this email directly, view it on GitHub https://github.com/patrickTingen/DataDigger/issues/96#issuecomment-1177813194, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABN3AHI4PHT3T4P72RZEVHLVS325XANCNFSM52Y3YSDA . You are receiving this because you commented.Message ID: @.***>

patrickTingen avatar Jul 21 '22 12:07 patrickTingen