bcp.exe 错误

发布于 2024-12-29 18:24:26 字数 873 浏览 1 评论 0原文

我在执行 bcp 时遇到以下错误:

#@ Row 1: CTLIB Message:  - L0/O0/S0/N0/0/0:
blk_rowxfer(): blk layer: internal BLK-Library error: No value or default value available and NULL not allowed.  col = 19 @#
#@ Row 1: Not transferred @#
2012-01-31 11:24:27 AM      201112      1       ASSET SWAP CGD (PTCG16OM0004)       9961500     104158.1743509      119789.165823456        15630.9914725559        10000000        440001251       -104267.3350867     -102094.0679096     2173.2671771        15630.9914725559        2173.2671771        17804.2586496559        0.852281316158969       NULL

问题是第 19 列是身份,但我在文件中没有它。为了解决这个问题,我使用了bcp -N 选项

我的命令是这样的:

bcp.exe tablename in filein -N -c -t \t\t -r \n -U user -P pass -S server -e errorFile



最奇怪的是它在一台机器上工作,但在另一台机器上不起作用。

我缺少什么?

I'm getting the following error doing bcp in:

#@ Row 1: CTLIB Message:  - L0/O0/S0/N0/0/0:
blk_rowxfer(): blk layer: internal BLK-Library error: No value or default value available and NULL not allowed.  col = 19 @#
#@ Row 1: Not transferred @#
2012-01-31 11:24:27 AM      201112      1       ASSET SWAP CGD (PTCG16OM0004)       9961500     104158.1743509      119789.165823456        15630.9914725559        10000000        440001251       -104267.3350867     -102094.0679096     2173.2671771        15630.9914725559        2173.2671771        17804.2586496559        0.852281316158969       NULL

The problem is that the 19th column is identity and I don't have it in the file. In order to solve this I used the bcp -N option.

My command is this:

bcp.exe tablename in filein -N -c -t \t\t -r \n -U user -P pass -S server -e errorFile


And the most weird is that it works in one machine, but not in another.

What am I missing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

好菇凉咱不稀罕他 2025-01-05 18:24:26

其中之一是问题:

  1. 远程计算机中的 Sybase 版本为 12.5(本地计算机中为 15.0)
  2. 当在数据库中表示 NULL 时,文件中的 BCP 有 NULL 而不是没有(空白)

One of this was the problem:

  1. Sybase Version in remote machine was 12.5 (in local machine was 15.0)
  2. BCP in file had NULL instead of nothing (blank) when representing NULL in database
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文