Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

How to write to SqLite ?

Michael_S
5 - Atom

Hello everyone.
I'm posting this here because I found it somewhat hard to write to SqLite file databases.

Now I've figured out a way, it's working fine.

I'm not sure that it's the correct path, but I'm sharing my way  :

 

- drag an output data tool,
     - select options:
          File Format: "SQlite (*.sqlite)"
          Output Options: "Delete Data & Append"
          Pre Create SQL Statement: "CREATE TABLE IF NOT EXISTS Dim... "
     - name the file after the desired filename + PIPES + THE DESIRED TABLE NAME
          "OlympicMedals.sqlite|||DimAthlete"


- copy & paste the output tool, repeat the process for each table
     - adjust the pre create SQL code
     - change the table name after the pipes

 

Michael_S_0-1619789027616.png

 

 

thanks,

Michael.

1 REPLY 1
rkapoor
Alteryx
Alteryx

@Michael_S  this looks fine to me.

Labels
Top Solution Authors