NAnt bcp (SQL Server) 任务成功实施吗?

发布于 2024-07-12 09:41:34 字数 156 浏览 5 评论 0原文

我正在寻找 SQL Server bcp 的 NAnt 任务,或 bcp 本机输出的文件格式。

我想我可以为 bcp 构建一个 NAntContrib 任务,但我现在没有时间(我们有时间吗?)。

有人走过这条路吗? 建议?

谢谢-乔恩

I am looking for either a NAnt Task for SQL Server bcp, or the file format for bcp native output.

I supposed I could build a NAntContrib Task for bcp but I don't have time at the moment (Do we ever?).

Has anybody strolled this path before? Advice?

Thanks - Jon

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

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

发布评论

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

评论(2

清醇 2024-07-19 09:41:34

bcp 没有这样的本机文件输出格式,但可以生成一个二进制文件,其中字段以包含字段长度的 1-4 字节标头为前缀。 标题的长度或行/列分隔符格式在控制文件中指定(格式描述此处),

如果使用带前缀的文件,SQL Server bcp 在标头中使用 -1 长度来表示空值。

bcp 中的“本机”是指列数据的二进制表示形式。 这个问题 对这些格式进行了一些讨论。

bcp doesn't have a native file output format as such, but can produce a binary file where the fields are prefixed by a 1-4 byte header that contains the length of the field. The length of the header or the row/column delimiter formats are specified in the control file (format described here),

If using prefixed files, SQL Server bcp uses a -1 length in the header to denote nulls.

'Native' in bcp-speak refers to binary representations of the column data. This question has some discussion of these formats.

熟人话多 2024-07-19 09:41:34

您始终可以使用 NAnt 的 驱动 bcp 的任务...

You could always use NAnt's <exec> task to drive bcp...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文