How to install Microsoft.ACE.OLEDB.12.0 on Win7 64b with SQLExpress 2008 - ms-access

I was running VSExpress 2010 C# and SQLExpress 2008 on 32b XP. Due to a failure I am now on Win7 64bit. I have reinstalled VSExpress C# (64b). I installed SQLExpress (64b) however my application uses the Microsoft.ACE.OLEDB.12.0 driver to connect to a Office 2007 (32b) database. I could not get the Microsoft.ACE.OLEDB.12.0 to load on SQLExpress (64b).
What do I need to do to get Microsoft.ACE.OLEDB.12.0 working again in SQLExpress? Do I need to run the 32bit version? (I have downloaded it but am having problems getting it to install so I am asking while I uninstall all of my SQLExpress)
Thanks for the help. (I saw a lot of similar issues addressed but could not find a solution for my specific problem)

I think this post has the answer you're looking for -- download 64-bit version of ACE OLE DB driver. However, apparently it requires installing 64-bit version of Office as well.
Otherwise go and install WoW-enabled 32-bit version of SQL Server 2008 Express. Go to this download page and download SQLEXPR_x86_ENU.exe (note: the one without 32 in the file name). It should install on 64-bit system.

I had the same problem and couldn't install the 64 version because I have 32 bit office installed as well (so the 64 bit installed terminated). I changed the build of my program to x86 instead of AnyCPU and the 32 bit ACE worked as given in this Stack Overflow question

If you are trying to use the 32bit version you will probably need to install the 32 bit version of the Microsoft Office Database engine. However if you have 64bit office installed this will show a message saying that 64bit is already installed.
If you install the Microsoft Office Database engine using the "/PASSIVE" command line argument it will install without the prompt, and then you can use the 32 bit ACE.OleDB.12 driver.
Beware in some situations this can cause complications with Office 64bit.

I had to install the Access 2007 Runtime to fix this. Here: https://www.microsoft.com/en-us/download/details.aspx?id=4438

Related

MySql 5.7 installer fails to detect VS 2013 redistributable

Trying to install the latest version of MySQL Server - 5.7.19 - on a clean Windows server machine using the MySql installer MSI package.
On first attempt it told me it needed a prerequisite of the Visual Studio 2013 Redistributable and installed it. When trying to install the server, however, it then complains:
1: Action 10:59:21: INSTALL.
1: 1: MySQL Server 5.7 2: {F08E9C75-A42E-4962-8760-4CBD9CF35D7A}
1: Action 10:59:21: FindRelatedProducts. Searching for related
applications
1: Action 10:59:21: AppSearch. Searching for installed applications
1: Action 10:59:21: LaunchConditions. Evaluating launch conditions
1: This application requires Visual Studio 2013 Redistributable.
Please install the Redistributable then run this installer again.
1: 1: MySQL Server 5.7 2: {F08E9C75-A42E-4962-8760-4CBD9CF35D7A} 3: 3
1: The action 'Install' for product 'MySQL Server 5.7.19' failed.
I've tried rebooting the machine - problem persists.
I've checked in the registry to ensure Windows knows the package is installed, which it does.
I've tried installing the previous version of MySql and that installs fine.
So I cleaned out all the installations and re-ran the package, this time also selecting Workbench, Shell and some other useful tools. All of it installed fine - except the Server. That's still demanding the redistributable which is already installed.
Where can I go from here?
I had the same issue today while installing MySQL 5.7 and not sure how shall I proceed and found your questions. I was sure that I have installed the 64bit version of Visual C++ Redistributable Packages on my machine. Then I installed a 32-bit version of the same package (URL: https://www.microsoft.com/en-in/download/details.aspx?id=40784) and the MySQL Installer detected that and proceed with the installation.
Looks like the installer was looking for 32bit install path. Hope this help.
I had a similar issue while installing MySQL 5.7.19 where I was installing the x64 version of visual C++ redistributable and it refused to work. Eventually was able to get around it in a similar way to Prabhat, but installed the x86 version instead. Working so far.
Would have commented this on Prabhat's answer, but reputation restrictions.
I had a same issue, I tried multiple times, even removed multiple version of the Visual Studio Redistribute 2013, but MySql V5.7 didn't get install. I tried both x86 and 64 bit, but result was same.
Solution:
I have downloaded MySql Version 5.6 instead of 5.7, then its gets installed like a charm.
Note:
Seems like there must be some issue with the MySql V 5.7 installer.
For a 64-bit MySQL server installation, I suggest updating the 64-bit version of the Visual Studio 2013 Redistributable Package (in my case from 12.0.30501 to 12.0.40660); the Redistributable Package update can found here. I came across this solution on this MySQL Forum post, but used the answer by Prabhat (on a different server) before and it worked too.
What you need to do is to install the Visual C++ Redistributable Packages for Visual Studio 2013, doesn't matter if you have installed the ones of 2015 for some reason. Install both x86 and x64 versions. Here's the link to the installers. Hope it works for you, it did for me.
I also had a problem installing MySQL 5.7.19 because installation claimed C++ Redistributable 2013 not installed when both 16 and 32 bit version were already installed. None of the other answers here worked for me.
What I discovered is that after repairing my C++ Redistributable, the installer then found it.
After checking the solutions posted by users in this thread, both solutions (either installing runtime for both architectures 32 and 64 bits or installing a newer version of runtime) work.
The better solution is to install the newer version of VC++ 2013 x64 runtime. Please make sure you are installing the one with a file version of 12.0.40660.0 as the one the MySQL Installer currently installs is version 12.0.30501.0, and any with this or lower version may cause errors. Thanks to Jafeth Carrillo Salas for the best solution, and to all other users that contributed with other workarounds.
We will fix this issue using the newer runtime version, you can track the status at this MySQL bug link.
My computer system language is Chinese.
At first,i install English version of visual c++ 2013 , it can't work.
And than, i uninstall visual c++ 2013(en). install visual c++ 2013(cn).
it works.
Try following steps:
step 1. Got to https://www.microsoft.com/en-in/download/details.aspx?id=40784
step 2. Click for downloading Visual C++ Redistributable Packages for Visual Studio 2013
step 3. Check vcredist_x64.exe for 64 bit or vcredist_x86.exe for 32 bit
step 4. Click next and after downloading Install vcredist_** in your machine
After then relaunch MySQL installer and repeat the mysql installation process.

MySQL ODBC 5.3 64-bit installation

I have run into this Problem trying to install the MySQL Connector/ODBC 5.3 64-bit Version; the 32-bit install runs fine.
I tried on Windows Server 2012 R2.
On my Windows 7 machine bothworked flawlessly.
I have found a lot of Posts suggesting - None of the tips worked:
to install the 64-bit Version BEFORE the 32-bit Version
to install the Microsoft Visual Studio redistributable package, both 64-bit and 32-bit (which I have installed for several years...). I even have the same Versions installed on the Server and on my Client.
to replace some DLLs (msvc*.dll) in C:\windows\syswow64
Finally, the last Suggestion brought me on the right track:
to replace some DLLs (msvc*.dll) in C:\windows\syswow64
together with a Forum post suggesting to not use the installer but the ZIP from the Oracle site.
When running the install.bat from the ZIP I finally got the correct error message:
So I copied the MSVCR120.dll from the C:\Windows\System32 on my Windows 7 machine where the Installation of the 64-bit Driver was working fine before over to the C:\Windows\System32 Windows Server 2012 R2 machine - where indeed it was missing! - and then Installation ran through.

How to install Microsoft.Ace.oledb 32 bit with Office 64-bit?

I was trying to create a SSIS package where i want to upload an excel file into my DB but its giving me an error that
Microsoft.ACE.Oledb.12.0 is not registered on your local machine
I have installed the 64-bit version of the MS Access Engine and it perfectly installed but after that i am still unable to create DTS package.
I have searched over the internet and found that there are two versions available for this and i have downloaded both and when i try to install the 32-bit version of the Access Engine it gives me error
You cannot install the 32-bit version of Microsoft Access Database Engine 2010 because you currently have 64-bit Office products installed.
Please help me on this i am really looking forward to it.
Somehow late to the party but nevertheless:
source
To install the Microsoft ACE OLEDB Provider 32-bit on a machine running Office 2010 64-bit:
install using cmd with the following command:
$yourPath$\AccessDatabaseEngine.exe /passive
This solution no longer works. It seems to have changed so instead of /passive, now the install requires /quiet
This solution works when installing ACE 32bit on with 64bit Office $yourPath$\AccessDatabaseEngine.exe /quiet
Thank you sir
I'm having this issue to and I tried to use the /quite but it's stating that The system cannot find the path specified.

How do I resolve using 32 bit program with 64 bit database driver?

I'm sure some will say this questions is off topic, but it is truly about programming since I wrote this program and I need to get it working on Windows 10.
I wrote an application in VB.Net and compiled it for "AnyCPU". So it would work in both 32 bit and 64 bit environments. The program communicates with a MySQL database so I load both the 32 bit ODBC drivers and the 64 bit ODBC drivers during the installation. However, one piece of the program uses Crystal Reports for outputting a report. The piece of Crystal I'm using only runs in the 32 bit work space.
The MySQL database installed is 64 bit due to the 64 bit OS.
Everything works harmoniously in Windows_7 (64 bit), but the same configuration does not work in Windows_10 (64 bit). In Windows 10 when the user tries to run the Crystal program to view a report, MySQL throws an error that it can't find the ODBC driver in
"C:\Program Files(x86)\MYSQL\Connector ODBC 5.3\myodbc5a.dll"
Of course the driver is there, but this error is usually due to the wrong bit version of the driver being installed.
The 64 bit version is installed in
"C:\Program Files\MYSQL\Connector ODBC 5.3\myodbc5a.dll"
Is this a Windows 10 issue or something else? How can I get MySQL to use the correct driver location?
I'm not sure if this will help anyone else or not, but basically I went back to ensure that the correct versions of the ODBC drivers were installed in their correct locations. So I uninstalled both versions of the ODBC drivers and tried to reinstall them. In doing this, I saw that the MySQL installer would only let me install one bit version of the driver but not both. My program installs both drivers from the command line in silent mode. But when duplicating my installation method, I noticed that the 32 bit drivers were not being installed correctly when run from the script. But since it installs in silent mode, I never noticed. All of the 32 bit driver dlls were there, including the one shown in the error message, however it was missing 2 dlls that did not get installed properly during the silent installation.
So using the MySQL installer, I tried to install both bit versions of the drivers but as I mentioned above it wouldn't let me. If I installed one version then went back and tried the other version it complained that both versions were already installed. So I had to trick it by installing one version then renaming the folder and then uninstalling it and installing the other version. Once the second version was installed, I went back and renamed the original version's folder back to its original name. That way both bit versions were in thier proper place. However, looking at the installer, it showed that only one version was installed (the one I installed last).
I'm still not sure why my silent installation failed. The error was reminiscent of the error you get when the C++ redistributable needs to be installed, but I tried this and it did not solve the problem. So my immediate problem has been resolved. If I figure out my installation issue, I'll come back and update this answer.

Using the correct mySQL ODBC driver in windows

I am trying to connect MS Access with a local mySQL database.
To do this I downloaded the mySQL ODBC connector from the mySQL website and installed it. As I am on a 64-bit system I went for the 64-bit version.
I then discovered when trying to connect Access to mySQL that my installation of Office is actually 32-bit so the driver doesn't work. So I removed the 64-bit ODBC driver and installed the 32-bit one.
Problem is, when I go into control-panel -> Administrative Tools -> Data Sources (ODBC) and try to add a new data source, the only options for the mySQL drivers seem to point to the old directory where the 64-bit drivers were. It then fails as it can't find the dlls with system error 126.
How do I get it to show the 32-bit drivers?
Run the 32-bit manager by running this command:
c:\windows\syswow64\odbcad32.exe
Also you can use RegisterDatabase() function to create connection from your code.
I wrote wrapper function many years ago:
http://5codelines.net/kak-programmno-sozdat-odbc-dsn/.
Just skip russian language and use the code.
Prior to installing the ODBC MySQL driver 5.2.6 you need to install the Microsoft Visual C++ 2010 Redistributable Package for x64 or x86 or both (just search the Microsoft site for these and download from there). Other driver versions may require different versions of this MS VC++ Redist. Package, which can coexist side by side. By default server 2008 R2 comes with the 2008 version, so installing the 2010 is required. Before installing check in Programs and Features if not already installed. Depending on you application it may require the 32 bit or the 64 bit version. Without it you get the system error 126
Then install the drivers:
To install the 32 bit version run as administrator c:\windows\syswow64\odbcad32.exe which is the 32 bit version of "Data Sources (ODBC)"