I am new to Python as well as SQL server studio. I have a scrapping code in python which collects data off the internet, saves it into pandas data frame, which eventually writes the data into csv. It scraped 100 rows at a time and saves it into csv. I get 100 such csv's which I append together, and convert into one big file. I do need the 100 separate csv.
Now, when I am trying to load this merged csv into SQL server management studio, through the import wizard, I get the truncation error. I checked and found a few rows having a column with string length more than 256 characters.
Is there a work around through this. An alternative I though was to limit the character length to 256 characters while exporting it to csv(which I know is not an optimal solution but it will work for me), how can I achieve that while writing the pandas data frame to csv. Is there any other format I can save it in and then load it through the windows import wizard.
Any help would be appreciated as I am really new to databases and python. Thank you in advance.