Truncation errors importing to SQL Server 2005 from Excel

后端 未结 7 1276
一整个雨季
一整个雨季 2020-12-31 05:38

Long story short, I\'m taking a bunch of excel documents one by one, and importing them using the Import/Export wizard into a database in SQL Server 2005.

Here\'s on

7条回答
  •  时光取名叫无心
    2020-12-31 06:22

    http://support.microsoft.com/kb/281517

    To change the value of TypeGuessRows, use these steps: 1.On the Start menu, click Run. In the Run dialog box, type Regedt32, and then click OK. 2.Open the following key in the Registry editor:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Excel

    Note For 64-bit systems, the corresponding key is as follows:

    HKLM\SOFTWARE\wow6432node\microsoft\jet\4.0\engines\excel 3.Double-click TypeGuessRows. 4.In the DWORD editor dialog box, click Decimal under Base. Type a value between 0 and 16, inclusive, for Value data. 5.Click OK, and then exit the Registry Editor. A second way to work around this problem (without modifying the registry) is to make sure that rows with fields, which have data 255 characters or greater, are present in the first 8 rows of the source data file.

提交回复
热议问题