I need a workaround for Excel Guessing Data Types problem

后端 未结 4 982
忘掉有多难
忘掉有多难 2020-12-03 16:13

I\'m creating a utility to import data from Excel to Oracle database,

I have a fixed template for the excel file,

Now, when I\'m trying to import the data by J

4条回答
  •  被撕碎了的回忆
    2020-12-03 16:47

    An alternative solution is to add or change the setting TypeGuessRows in the registry. By setting its value to 0, the complete document will be scanned.

    Unfortunately, the settings may be found on various locations in the registry, depending on the which libraries and versions of them you have installed.

    For instance: [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Jet\4.0\Engines\Excel] "TypeGuessRows"=dword:00000000

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Access Connectivity Engine\Engines\Excel] "TypeGuessRows"=dword:00000000

    This will also prevent truncation of textual data longer than 255 characters. This happens if you have a number for TypeGuessRows larger than 0 and the first text longer than 255 characters occurs beyond that number.

    See also Setting TypeGuessRows for excel ACE Driver.

提交回复
热议问题