

Not too sure setting correct? as per below: Connection may not be configured correctly or you may not have the right permissions on this connection. specially when i come to Create Data1 in excel Sheet 2007.Įrror: Error: Failed to acquire connection “Book1.xlsx”. What an impressive guidance, however i couldn’t proceed to the rest. Note: In all the cases where in we are getting string data (along with number data) be means of some or the other setting, we have to have String column in the destination. This will allow all type of values to get imported as ‘DT_WSTR’ which is quite acceptable because anyhow it’s getting all the values of a column. Using ‘ SELECT * FROM ’ query instead of direct table/sheet name.So if we use a higher value for TypeGuessRows (say 20) then it would take it as Integer.īut again here also it would import rest of the string values as NULL. This will be applied for all the packages i.e. So if we have first 5 rows/cells of a column of type string but rest of the 100 values are numbers then it would import all the numbers as NULL since data type in this would be String (DT_WSTR). Registry setting “ TypeGuessRows=8”: This setting/value tells the connection manager to consider the first 8 rows of a column and decide over its data type based upon the maximum no.Then we can forcefully select ‘DT_NTEXT’ data type in the data source.

This setting tells that excel sheet is having mixed data types and thus import it as ‘Text’ values. This can be set in the connection string in case of Excel Source (Excel 2003) and can be set using ‘Extended Properties’ in case of OLE DB Source (Excel 2007).

Data source scans the metadata of the excel sheet and determine the data type of columns.īut in this process, there are certain other parameters or settings which also play an important role in this and once decided all other values with other data type in the same column are imported as NULL.Įxample: If we have string and numbers values in the same column then either it will take it as string or number while configuring the excel data source. When we use Excel (Excel source in case of excel 2003 & OLEDB Source in case of excel 2007) as our data source in SSIS, we come across the fact that SSIS decides over the data type of a column of excel sheet based upon the contained metadata.
