Data truncated after 255 bytes while using Microsoft.Ace.Oledb.12.0 provider

前端 未结 5 761
抹茶落季
抹茶落季 2021-01-21 04:43

I am reading an excel sheet using the ACE provider and certain cells contain data greater than 255 bytes. I tried changing the TypeGuessRows in the registry settings as well as

5条回答
  •  生来不讨喜
    2021-01-21 05:12

    I am also using Microsoft.ACE.OLEDB.12.0 on 64-bit Windows 7.

    I found that the TypeGuessRows in the connection string has no effect.

    But increasing the TypeGuessRows in the following registry location works:

    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Access Connectivity Engine\Engines\Excel

    More info on a similar bug (although you may already know this as you're already trying to change TypeGuessRows)

提交回复
热议问题