软讯网络 > 冲浪宝典 > 网络资源 > 纪录bcp 执行日志,查看导入导出过程中错误
【标 题】:纪录bcp 执行日志,查看导入导出过程中错误
【关键字】:
bcp
【来 源】:http://www.cublog.cn/u/13662/showart.php?id=142677
纪录bcp 执行日志,查看导入导出过程中错误
bcp 执行的时候产生日志,查看导入导出过程中错误
在网上找到下面关于参数-e errfile的英文说明
-e
is the full path name of an error file where bcp stores any rows that it was unable to transfer from the file to the database. Error messages from bcp appear on your terminal. bcp creates an error file only when you specify this parameter.
参数如下:
-e c:\errfile 即可,在C盘下即会产生一个名为errfile 的错误日志,就会看到哪几条数据没有导入成功。