Truncation errors importing to SQL Server 2005 from Excel

后端 未结 7 1284
一整个雨季
一整个雨季 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:13

    Here's what worked for me.

    This is due to a wonderful setting within Excel in your registry that tells it to only check the first 8 rows of data within your spreadsheet to determine the column size for the remainder of all the data. The fix for this is to modify your registry to set it from 8 to 0. When it’s set to 0 it will check the entire spreadsheet. This may cause some performance issues during the initial data import if the file is extremely large. Here is the the registry key to search for (there may be more than one that needs to be set):

    TypeGuessRows

提交回复
热议问题