3

I am attempting to extract a table to CSV using BCP from SQL Server 2014 and the size of the file once the data is extracted is actually larger than the size of the database itself.

One thing to note is that one of the fields in this table is an nvarchar(max) and could contain values that exceed 8000 chars.

I was just wondering if this was normal behavior when extracting this type of data to file, or whether there was some trick that I could use to shrink the file size without any data loss.

1

Native format (-n) is the most compact, and best if you're moving from one SQL Server to another. The files will also zip quite nicely.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.