SQL Server Blogs

Voices from the UK SQL Server Community
Welcome to SQL Server Blogs Sign in | Join | Help
in Search

Jorg Klein's Microsoft Business Intelligence Blog [Macaw]

SSIS - Let the Excel connection manager pick the right column data types from an Excel source

Published Nov 18 2009, 09:45 PM by jorg
Filed under:

Comments

 

Twitter Trackbacks for SSIS - Let the Excel connection manager pick the right column data types from an Excel source - Jorg Klein's [sqlblogcasts.com] on Topsy.com said:

Pingback from  Twitter Trackbacks for                 SSIS - Let the Excel connection manager pick the right column data types from an Excel source - Jorg Klein's         [sqlblogcasts.com]        on Topsy.com

November 19, 2009 4:34 AM
 

toddmcdermid said:

Unfortunately, that reg key only allows values from 1 to 16 - yes, you can only increase the number of rows Excel will "sample" to 16.

I much prefer leaving Excel's guesswork out of it, and using IMEX=1.  Full details of that on Dougbert's blog: dougbert.com/.../default.aspx

November 19, 2009 4:36 PM
 

jorg said:

Hi Todd,

Thanks for your comment! Very useful.

I did not know 16 was the max so I will add that to the blog post, thanks for the addition!

If I read the note on Microsoft Support about the IMEX=1 option it seems the TypeGuessRows property is still important. IMEX=1 only seems to affect the way Excel determines the data type, or am I missing something here?

This is the note from support.microsoft.com/.../194124 (got there by a link on Dougbert's blog):

"NOTE: Setting IMEX=1 tells the driver to use Import mode. In this state, the registry setting ImportMixedTypes=Text will be noticed. This forces mixed data to be converted to text. For this to work reliably, you may also have to modify the registry setting, TypeGuessRows=8. The ISAM driver by default looks at the first eight rows and from that sampling determines the data type. If this eight row sampling is all numeric, then setting IMEX=1 will not convert the default data type to Text; it will remain numeric. "

November 19, 2009 8:28 PM
 

Robbertvisscher said:

The reg key also allows the value 0. When this value is set, the excel connection manager scans every row to determine the data type for a column in your SSIS source component.

November 30, 2009 3:48 PM
 

Link Resource # 30 : Nov 01 – Nov 29 « Dactylonomy of Web Resource said:

Pingback from  Link Resource # 30 : Nov 01 – Nov 29 «  Dactylonomy of Web Resource

November 29, 2011 3:15 PM
 

Link Resource # 33 : DESC 03-DESC 08 « Dactylonomy of Web Resource said:

Pingback from  Link Resource # 33 : DESC 03-DESC 08 «  Dactylonomy of Web Resource

December 8, 2011 11:03 AM
 

Link Resource # 34 : DESC 08 – DESC 11 « Dactylonomy of Web Resource said:

Pingback from  Link Resource # 34 : DESC 08 – DESC 11 «  Dactylonomy of Web Resource

December 10, 2011 11:33 AM
 

Link Resource # 34 : Desc 08-Desc 11 « Dactylonomy of Web Resource said:

Pingback from  Link Resource # 34 : Desc 08-Desc 11 «  Dactylonomy of Web Resource

December 10, 2011 11:34 AM
 

Link Resource # 37: Dec 23 – Dec 27 « Dactylonomy of Web Resource said:

Pingback from  Link Resource # 37: Dec 23 – Dec 27 «  Dactylonomy of Web Resource

December 29, 2011 2:57 PM
 

Link Resource # 40 : Jan 01 – Jan 06 « Dactylonomy of Web Resource said:

Pingback from  Link Resource # 40 : Jan 01 – Jan 06 «  Dactylonomy of Web Resource

January 6, 2012 2:26 AM
Powered by Community Server (Commercial Edition), by Telligent Systems