I want to export a flat file .csv extension from SSIS.
My data is like this:
Customer Customer Name Address
AA00 Hla Hla,Ms Yangon
AA02 Kyaw,U Taunggyi
I want the flat file to have the below format:
Customer Customer Name Address
AA00 Hla Hla,Ms Yangon
AA02 Kyaw,U Taunggyi
I added OLEDB Source & Flat File Destination in Data Flow. My SQL statement is from OLEDB Source
SELECT CustCode AS CUSTOMER, Name as Customer Name , Add as Address
FROM customer
Now, the export looks like the below.
Customer,Customer Name,Address
AA00,Hla Hla,Ms,Yangon
AA02,Kyaw,U,Taunggyi
So, I want to use a stored procedure that , case. There is Execute SQL task in Control Flow. But I don't know how to execute flat file by using that procedure.
Please kindly suggest