We get a daily email of the previous days' deliveries from our courier service. The email has a .csv attachment.
Currently I open the CSV in Excel and change the format of column a from general to number, no decimal places. This column holds the consignment numbers and in the CSV it appears as xxxxxxxxE+13 (e.g).
I then save it as an XLS and import it into my SQL server table.
What I would love to happen is to do this automatically. I use Outlook and Thunderbird, so either option is good. The subject line changes but always contains "PODs".
How can I :
1) extract the csv from the email on receipt of the email
2) ensure that colimn a is formatted as number, no decimal places.
3) import the data into SQL Server Table
Currently I open the CSV in Excel and change the format of column a from general to number, no decimal places. This column holds the consignment numbers and in the CSV it appears as xxxxxxxxE+13 (e.g).
I then save it as an XLS and import it into my SQL server table.
What I would love to happen is to do this automatically. I use Outlook and Thunderbird, so either option is good. The subject line changes but always contains "PODs".
How can I :
1) extract the csv from the email on receipt of the email
2) ensure that colimn a is formatted as number, no decimal places.
3) import the data into SQL Server Table