As the question says, given the large text file, how can I get its contents in the nvarchar (max) column on the sql server without loading the entire contents of the file into memory (either to create a dynamic sql statement, or as an SP parameter)?
My best solution so far is to insert a row with an empty value, and then start the update in a loop, adding pieces of data every time in a transaction. Is there a better way besides copying the file to the database server and using BCP? Any way to transfer data?
source share