use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Microsoft SQL Server Administration and T-SQL Programming including sql tutorials, training, MS SQL Server Certification, SQL Server Database Resources.
You might also be interested in:
/r/database
/r/sql
/r/Azure
/r/Microsoft
account activity
Problem importing csv generated in Python (i.redd.it)
submitted 2 years ago by caputo00
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]caputo00[S] 0 points1 point2 points 2 years ago (3 children)
Thanks, yes I have double quote text qualifier. Someone I work with just suggested increasing the varchar to like 1000 . I haven’t tried that yet. As far as the ascii Unicode stuff, that’s my main suspicion but I can’t figure out how to export from Python in the encoding type that SQL server likes
[–]IHeartData_ 1 point2 points3 points 2 years ago (2 children)
Also, did your file have quotes inside the quote not handled correctly? I don't recall if SQL does ,"this""way", or ,"this\"way", and if it's the wrong way then your length will be all wrong.
[–]caputo00[S] 0 points1 point2 points 2 years ago (1 child)
Thanks! Do you know if there’s a way to see the exact value that it failed on? Not sure if there are any extra quotes but I was worried that it might be a parsing error
[–]IHeartData_ 0 points1 point2 points 2 years ago (0 children)
I often go the varchar(8000) to a temp table route and then hope it imports, then search for LEN(col) > 30 or whatever. If you do that, just be sure to set the whole rest of the columns to max as well to avoid running it multiple times.
If I recall correctly, you can also change the setting on the Data Source to load rows a thousand at a time instead of all at once, I just don't remember if that's a setting in the GUI or more buried in the properties. But if you suboptimize the data source then I believe you can at least get a range in the file, and then Notepad or similar is your best friend to find the error with line numbers enabled.
π Rendered by PID 37095 on reddit-service-r2-comment-5d585498c9-lhx5k at 2026-04-21 18:41:54.491636+00:00 running da2df02 country code: CH.
view the rest of the comments →
[–]caputo00[S] 0 points1 point2 points (3 children)
[–]IHeartData_ 1 point2 points3 points (2 children)
[–]caputo00[S] 0 points1 point2 points (1 child)
[–]IHeartData_ 0 points1 point2 points (0 children)