I try to load my database with tons of data from a .csv file sized 1.4 GB. But when I try to run my code I get errors.
Here\'s my code:
USE [Intradata N
This is my solution: just give up.
I always end up using SSMS and [ Tasks > Import Data ]
.
I have never managed to get a real world .csv file to import using this method. This is utterly useless function that only works on pristine datasets that don't exist in the real world. Perhaps I've never had any luck because the datasets I deal with are quite messy and are generated by third parties.
And if it goes wrong, it doesn't give any clue as to why. Microsoft, you sadden me with your utter incompetence in this area.
Microsoft, perhaps add some error messages, so it says why it rejected it? Because it's almost impossible to fix the issue if you don't know why it failed!