English 中文(简体)
微软喷气机4. 0 支持64位整数吗?
原标题:Does Microsoft Jet 4.0 support 64bit integers?

我有一个 csv 文件, 我试图将它导入到 Sybase SQL 数据库中, 使用 C#. NET 中的 SBulkCopy (Sybase ss 版本 SQLBulkCopy) 类输入 Sybase SQL 数据库 。 csv 文件的第一列映射为 Sybase DB 中的64位整位主键值 。 在一个列中还有二进制数据( 大于 510 字节) 。 使用 Jet4. 0 OleDB 访问 csv 文件可能不是进行批量插入的最佳方式, 但我不知道有另一种方法可以使用 csv 源文件来完成此操作 。 这整个点是为了避免将全部插入写入日志, 因为 blob 数据是消耗性的, 但需要以快速的方式导入 。 我使用 schema. ini 文件来绘制 csv 文件的数据类型, 问题在于“ Long” 数据类型仅用于 32 位整数 。 这造成了一个错误, 当我将 OleDDD DD DDD Dreder 输入一个 而不是 SABplk- 。

问题回答

您无法使用 Jet 4. 0 进行此项操作, 但您不需要。 您可以在 < a href=> http://www.microsoft. com/ en- us/ download/ details.aspx?id=13255" rel= "nofollow" > http://www.microsoft.com/ en- us/ download/details.aspx?id=13255 获得64- bit Access 引擎可重新分发。 您还需要更新您的连接字符串提供者到“ microsoft. ACE. OLEDB.12. 0 ” 。

如果无法使用单独安装的引擎, 您总是可以做一个简单的文件读取并解析数据 < a href=> "http://www.akasmarting.com/blog/ 256- csv- databable. html" rel="nofollow" 。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签