用Java读取BCP文件

发布于 2024-12-11 00:10:20 字数 581 浏览 5 评论 0原文

是否有任何 Java 库(或示例代码)用于读取命令行 Microsoft 批量复制 (BCP) 实用程序,用于导入/导出 SQL Server 数据?

免费 TDSjbcp,但我主要感兴趣的是读取原始 BCP 文件(ASCII 或二进制)并处理其内容,而不是将数据插入 SQL Server。

因此,纯 Java“BCP 阅读器”实用程序将是理想的选择。

另外,是否有一个很好的BCP 格式在线参考(包括格式模式和示例数据)?

如果存在BCP 文件的开源解析器,即使不是 Java 语言,那也会有所帮助。

Is there any Java library (or example code) for reading files produced by the command-line Microsoft Bulk Copy (BCP) utility, used for importing/exporting SQL Server data?

Some similar work is done on Free TDS and jbcp, but I am mainly interested in reading raw BCP files (ASCII or binary) and processing their contents, not inserting data into SQL Server.

So, a pure Java "BCP reader" utility would be ideal.

Also, is there a good online reference for the BCP format (including format patterns and example data)?

If an open source parser for BCP files exists, even not in Java, that would help as well.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文