I have created a file format in Snowflake of CSV type for data unloading; and want the filename to be appended with current timestamp .
create or replace file format "DEV_DB"."SCHEMA".my_out_file
-- type = csv
compression = none
FILE_EXTENSION = 'txt'
copy into devstg/A/OutputFiles/my_outbound
from (select * from "DEV_DB"."SCHEMA"."TABLE")
file_format = my_out_file
OVERWRITE=TRUE
SINGLE=TRUE;
This is creating an output file with filename : my_outbound. The desired filename is my_outbound_05132022171500
How to append the timestamp to a filename in Snowflake/Azure?
Thanks