忽略 BCP 实用程序最大错误

BCP utility max errors ignored

使用bcp上传数据时,如何指定max_errorsallowed is 0?当我使用-m 0时,它会忽略所有语法错误,并继续上传其余数据。这是 bcp 实用程序 doc

bcp table1 in c:\table1.csv -c -t, -m 0 -S server1 -T

更改 -m 1 将在出现第一个错误时停止。

事实证明 -m 1 会在遇到第一个错误时停止,这正是我要找的。