How do I handle the "Invalid field size for datatype" error?

  • I'm trying to copy some data from a test database server to local database on my PC. I've been using bcp to get this done. It's worked fine with all of the tables, except one. That table has NVARCHAR(MAX) columns in it. From PowerShell I issued this command to perform the extract:

    bcp CoreFramework.APP.ExampleTable  OUT .\ExampleTable.bcp -T -w -n -S OURDEVSERVER

    Then I issued this command to try and import that data:

    bcp CoreFramework.APP.ExampleTable in .\ExampleTable.bcp -T -w -n

    But that only results in the error Invalid field size for datatype.

    I do not know how to get around this. Could use some help, please.

    Kindest Regards, Rod Connect with me on LinkedIn.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply