
Like any other Microsoft program, Excel is incredibly easy to use. With the formulas, users can easily manage balance sheets, income statements, and various other financial data sets. Most notably though are the mathematical computations, which give users the chance to analyze complex data sets with just a few simple controls.

Provider=.4.0 Data Source=D:\MyExcelFile1.xls Extended Properties="EXCEL 8.0 HDR=YES IMEX=1" Goto the properties of the Excel Connection manager and change the ConnectionString property: Changing to Import Mode (0 is Export mode, 1 is Import mode and 2 is Linked mode) will result in getting everything (including numbers) as a string. If you want to get the data of all rows, regardless the datatypes in Excel, you should add the string IMEX=1 to the Excel Connection String. Note: Setting the TypeGuessRows value to zero (0) will result in checking the first 16384 rows in excel. HKEY_LOCAL_MACHINE\Software\Microsoft\Office\15.0\Access Connectivity Engine\Engines\Excel\TypeGuessRows HKEY_LOCAL_MACHINE\Software\Microsoft\Office\14.0\Access Connectivity Engine\Engines\Excel\TypeGuessRows HKEY_LOCAL_MACHINE\Software\Microsoft\Office\12.0\Access Connectivity Engine\Engines\Excel\TypeGuessRows HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\3.0\Engines\Excelįor the ACE provider (Excel 2007, 2010 & 2013): HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Jet\4.0\Engines\Excel

The place of that key depends on the version of Windows and Office. You can change the default of checking 8 rows (1 to16) by changing the windows registry, but that doesn't change the majority rule! If you want to change that number. Start the Windows Registry-editor and search for "TypeGuessRows". The first and second column get DT_R8 and the third column gets DT_WSTR.

If the majority of the rows are numbers it will choose a numeric datatype instead of a string data type and visa versa.

The Excel driver reads the first 8 rows to determine the datatype.
