Hi Experts, i would like to get help on solving a issue.Kindly please help.
1. I have a CSV file which I downloaded using SSIS from an endpoint URL
2. that file has 4 columns and 1 column row which I matter is File column with base64 encoded value
3. I was able to dump that column to SQL SERVER table using ssis
4. then used below to decode using t SQL
SELECT
CONVERT
(
VARCHAR(MAX),
CAST('' AS XML).value('xs:base64Binary(sql:column("FILE"))', 'VARBINARY(MAX)')
) AS RESULT
FROM ABC
the o/p I have a csv data which looks like
Agentid,agentname, phone, email, address,state,country, zip,ssn 1,nick,56677700987,abc@yahoo.com,address,tx,12345,9990009999 2,Jack,12677700987,abcuu@yahoo.com,address,tx,145,12990009999 3,mike,56677700987,abcd@yahoo.com,address,tx,12345,9990009999,
something like that as 1 ROW .
but when I copy and paste in csv or ssms I see
Agentid,agentname, phone, email, address,state,country, zip,ssn
1,nick,56677700987,abc@yahoo.com,address,tx,12345,9990009999
2,Jack,12677700987,abcuu@yahoo.com,address,tx,145,12990009999
3,mike,56677700987,abcd@yahoo.com,address,tx,12345,9990009999
now, what I would like to do take /convert do some t SQL magic with function and insert this same row into a new readable table( as 1 row as column and then all as rows)
kindly please help:
any help?