I am trying to import data from excel file (.xlsx) into sql database, my problem is that i am always getting the error “The ‘Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine“, please note that before telling me to search for this error read the below:
- my connection string is as follows:
string connString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + ExcelUploadLocation + fileName + ";Extended Properties=\"Excel 12.0 Xml;HDR=YES\""; - I installed AccessDatabaseEngine.exe from here: http://www.microsoft.com/download/en/details.aspx?id=13255
- the process is working on my pc (windows 7 32 bit) but not working on the server (windows server 2008 R2 64bit)
- I can’t change the target platform from VS 2008 (from any cpu to x86) as you can see in the image below
Any help would be highly appreciated.
Try to install this one http://www.microsoft.com/download/en/details.aspx?id=23734