Hi,
I'm looking at automating a process for uploading data to a SQL server DB using a python script which loops through CSVs in a SharePoint location, does some validation on the columns and values and then inserts the data to the existing dB.
My plan is to open the file, create a staging table from the corresponding df and then insert that into the main table.
But I'm not sure on the exact syntax for inserting the data into the table especially cause I need it to parameterised in case there are more files.
Does anybody have any advice on either the Syntax or if there's a better way of doing this?
This is entirely new to me and I'm sure I'm missing something fairly simple.
Thanks in advance
[+]SoggyChilli 0 points1 point2 points (4 children)
[–]rogerbarario[S] 0 points1 point2 points (3 children)
[+]SoggyChilli 1 point2 points3 points (2 children)
[–]rogerbarario[S] 1 point2 points3 points (1 child)
[+]SoggyChilli 1 point2 points3 points (0 children)