[转载]A problem when reading data from Excel
2009-11-01 21:33
465 查看
Read data from one column, Excel will check first 8 rows (Default Value)'s format. If first 8 rows are number, and row 9 is string, the string value will missing.
1. Add "IMEX=1" to connection string. 2. Change the key value in register.
Details: Check the following registry settings for the *machine*:
[b]Hkey_Local_Machine/Software/Microsoft/Jet/4.0/Engines/Excel/TypeGuessRows Hkey_Local_Machine/Software/Microsoft/Jet/4.0/Engines/Excel/ImportMixedTypes
[/b]TypeGuessRows: setting the value to 0 (zero) will force ADO to scan all column values before choosing the appropriate data type.
ImportMixedTypes: should be set to value 'Text' i.e. import mixed-type columns as text:
Using IMEX=1 in the connection string (as you have done) ensures the registry setting is applied.
相关文章推荐
- [zz]A problem when reading data from Excel
- [zz]A problem when reading data from Excel
- [zz]A problem when reading data from Excel
- [zz]A problem when reading data from Excel
- Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file'系列二:reset slave
- MySQL 的一次错误处理 Got fatal error 1236 from master when reading data from binary log
- mysql从库Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file'报错处理
- 转载:Character data is represented incorrectly when the code page of the client computer differs from the code page of the database in SQL Server 2005
- MySQL之Got fatal error 1236 from master when reading data from binary log
- Last_IO_Errno: 1236 Last_IO_Error: Got fatal error 1236 from master when reading data from binary lo
- Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file'
- Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Could not find
- Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Could not find
- Got fatal error 1236 from master when reading data from binary log: ‘Slave can not handle replicatio
- Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file'系列三:重置主从同步
- Got fatal error 1236 from master when reading data from binary log: 'Client requested master to start replication from impossible position'
- Got fatal error 1236 from master when reading data from binary log
- Got fatal error 1236 from master when reading data from binary log
- error 1236 from master when reading data from binary log: 'Slave can not handle replication events w
- got fatal error 1236 from master when reading data from binary log