load flat file with timestamp using IICS - snowflake-cloud-data-platform

I need to load a Flat file to a snowflake table. flat file comes in daily with timestamp. how can I do this in IICS.

You have to do an indirect file load and have a batch/shell script that generates the file list and is run as a command in your source object

Related

How to load data from UNIX to snowflake

I have created CSV files into UNIX server using Informatica resides in. I want to load those CSV files directly from UNIX box to snowflake using snowsql, can someone help me how to do that?
Log into SnowSQL:
https://docs.snowflake.com/en/user-guide/getting-started-tutorial-log-in.html
Create a Database, Table and Virtual Warehouse, if not done so already:
https://docs.snowflake.com/en/user-guide/getting-started-tutorial-create-objects.html
Stage the CSV files, using PUT:
https://docs.snowflake.com/en/user-guide/getting-started-tutorial-stage-data-files.html
Copy the files into the target table using COPY INTO:
https://docs.snowflake.com/en/user-guide/getting-started-tutorial-copy-into.html

How to delete an existing csv file and create new one in ssis?

I am new to ssis. I want to schedule a job to create a csv file daily. So each day, the existing file should be deleted and I want to create a new csv file. Could you please help me with this?
As for deleting existing file, the flat file connection properties should have a tick box to overwrite the existing file. If the file is not locked by another process like Excel that should be sufficient to ensure the old one is replace by the new one
If you need more guidance on how to build the package you can have a look at the below link
Exporting to CSV

SSIS - Script task to create xlsx file (Export data from sql database to new excel file)

I have data flow task, which import data from sql server to excel. Currently it requires to have excel templated in place, meaning that I have xlsx file with column names without data in my network location. If I run the package the excel will be filled with data.
What is needed: If I run ssis package I need new xlsx file to be created every time if package is executed. So I need to just create xlsx file with define columns every time and the xlsx file name should include date.
I imagine that I have to set up script task before data flow task, which just creates xlsx file. I am not very familiar with C#, I hope that someone could share the code what to use to achieve this.
Or, you could create a folder and place a Template excel file with predefined format and no data.
Every time the process runs, it must:
Copy the file using File System task to the destination location
Use Data flow task to populate the data into the file in the Destination location
Rename the file in the Destination location as required

SSIS process for saving .xlsx file as .csv file

I am trying to download a .xlsx excel file from FTP server and save it in a .csv file format.
I was able to download a file from server using ftp task in SSIS and save it in a local folder now I want to save that file as csv file format for import process. I could not find a conversion method or task from .xlxs to csv. i tried script task but it didn't work. can someone please help.
The simplest way to do that will be to use an Excel source and a Flat File Destination (set it as a CSV). Hope it helps.
You can add a Script task to achieve this, and inside the script you can use Interop Library:
Converting XLSX file using to a CSV file
Convert .xlsx & .xls to .csv
How to Convert Excel to CSV using Interop

How to generate csv file using apache camel and mybatis/bindy?

I am trying to generate csv file by exporting data from db through apache camel and mybatis/bindy. I am able to get result set and CSV file is generated, but the csv file is missing column name. How can I generate a CSV file with column name added along with the rows.

Resources