Hello,
I am using oledb to access Excel
If m_iFileTypeID = 1 Then 'for *.xlsIf m_bFileContainsColumnNames Then
m_sExcelConn1 = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & FilePath & ";" & _
"Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1"""
Else
m_sExcelConn1 = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & FilePath & ";" & _
"Extended Properties=""Excel 8.0;HDR=No;IMEX=1"""
End If
ElseIf m_iFileTypeID = 7 Then 'for *.xlsx
If m_bFileContainsColumnNames Then
m_sExcelConn1 = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & FilePath & ";Persist Security Info=False;Extended Properties=""excel 12.0;HDR=YES;IMEX=1"";"
Else
m_sExcelConn1 = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & FilePath & ";Persist Security Info=False;Extended Properties=""excel 12.0;HDR=NO;IMEX=1"";"
End If
End If
This piece of code is working in 32-bit Operating system with Windows vista ultimate with SSIS 2005 and SSIS 2008. But when we take this to production where we Have SQL Server 2008 R2,Windows 8 I get Error
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine
we have already downloaded the AccessDatabaseEngine installed it. But we still have the same error.
P.S. we have tried the exact same code with SQL server 2012 and it works like a charm. Any help on this is really helpful
Thanks,
Anand.