sql server - "The column is too long in the data file" while doing bulk insert from native data file -
i'm trying copy data in table sql server's identical empty table. i'm using transfer file cause direct sql-connection not possible. reason insert fails single table. i've used many other tables. ideas causes issue or how overcome it?
source: microsoft sql server 2008 r2 (sp2) - 10.50.4321.0 (x64) jul 9 2014 15:59:57 copyright (c) microsoft corporation standard edition (64-bit) on windows nt 6.1 (build 7601: service pack 1) (hypervisor)
target: microsoft sql server 2014 - 12.0.4100.1 (x64) apr 20 2015 17:29:27 copyright (c) microsoft corporation standard edition (64-bit) on windows nt 6.1 (build 7601: service pack 1) (hypervisor)
exported using command-line:
bcp mydb.dbo.f_mytable out f_mytable -n -s 123.123.123.123 -u myusername -p %passwd%
tried importing using t-sql:
bulk insert dbo.f_mytable 'c:\f_mytable' (datafiletype='native',keepidentity);
resulted in error:
msg 4866, level 16, state 4, line 70 bulk load failed. column long in data file row 1, column 13. verify field terminator , row terminator specified correctly. msg 7399, level 16, state 1, line 70 ole db provider "bulk" linked server "(null)" reported error. provider did not give information error. msg 7330, level 16, state 2, line 70 cannot fetch row ole db provider "bulk" linked server "(null)".
here's i've tried no luck:
- recreating table in source using script source.
- played import options: keepidentity, batchsize, maxerrors, keepnulls
- exported using server's command line in addition local pc
Comments
Post a Comment