ACE 12.0 OLEDB Provider - com

I have 32-bit Office installed together with 32-bit AccessDatabaseEngine on a laptop with 64-bit Windows 10.
With 32-bit Office goes 32-bit ACE although Office does not use ACE (but VBA can do) and (Microsoft disallows 32- 64-bit ACE 12.0 to coexist on the same computer).
Using an identical connection string and sql statement, I am able to use ADODB successfully but a C# COM server is giving me this error:
The 'Provider=Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
I am also able to Import Data from xlsx sources in SQL Server Management Studio.
It appears that the C# Com server is looking for the 64-bit version. I have specified x86 as the target platform for the C# project.
Any hints on how to overcome the error with the C# COM server? Why does C# default to using 64-bit ACE 12.0 (ADODB & SSMS do not)? Is there a way of coercing the use of 32-bit ACE in the C# project - I've already specified x86 as the target platform?
Thanks.

Related

How MS Access 64 bit import or link from Visual FoxPro database?

before I use MS Access 2010 32 bit link to Visual FoxPro through ODBC driver. after I upgrade to MS Access 2016 64 bit. the ODBC driver does not show Visual FoxPro databases. and Access cannot connect to VFP. anyone can advise?
There never was nor is a x64 bit version of FoxPro. As a result, if you want to consume VFP files? Then your .net project has to remain x32 bits.
And same goes for using the VFP odbc driver. They are x32 bits only, and thus your .net software, or in this case ms-access software MUST remain as the x32 bit version.
Foxpro is x32 bit technology only - and thus any software that interacts or is to consume VFP data also must remain as x32 bits.
You can't use the x64 bit version of Access - it will not work with x32 bit software.

How to connect Visual FoxPro in Windows 2012 R2

I am using Visual FoxPro and Visual FoxPro odbc driver.
My code was working fine in Windows Server 2003. Now we need to migrate to Windows Server 2012 R2. We installed visual odbc driver on server. Still it is not working. We have also registered application DLL (developed in Vb 6) in syswow64 folder. However no luck.
Below is my code:
Dim strDbfstring
Strdbfstring = "Driver = {microsoft visual FoxPro driver };sourcetype= dbf;Exclusive = no"
Condbf.open strdbfstring
The code for oledb provider 9.0 works for me. The only problem was in installation setting. I re-installed oledb driver with permission for everyone. Provider should have given access to everyone.
The old Desktop ODBC Drivers have always had their limitations. I'm not sure they were ever made available as redistributables. VFP could be an exception. However:
The VFPODBC driver is no longer supported. We strongly recommend using the Visual FoxPro OLE DB provider as a replacement.
So have you considered Microsoft OLE DB Provider for Visual FoxPro 9.0 instead? This will probably be far more robust anyway.

upgrade access 2003? [VB.NET 2008 + Access 2003]

I have programs (created using VB.NET 2008) interacting with .mdb files (created in access 2003). use Oledb 4.0.
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=MyPath;
Jet OLEDB:Database Password=MyDbPassword;
Works fine on all my computers: W8 Pro, XP, 2003, Vista, Windows 7, ....(32 and 64 bits).
But with the upcoming end of support and updates for office 2003, should it also be necessary to migrate our databases .mdb (created with access 2003) to a higher version? affects or this is not necessary if we do not use Office 2003?
No you don't need to upgrade your app to a newer version of Jet (and no, there is no new version of Jet), you could still use that bits until they are supported by the Net Framework OleDb classes and the libraries present on the target machine.
The version of Office installed by your user has nothing to do with that.
Of course this library is outdated. The new bits for opening a Microsoft Access database in the new format (ACCDB) are called Microsoft.ACE.OleDb.12.0 and you can find the connection strings on this site
These new libraries allows to write application for 64bit but I can't really recommend to switch to a 64 app unless you have compelling reason to do that. For more info see this question
Updates for Office are only for Office. I doubt that there's been an update to Jet 4.0 for some time.

Error migrating 32-bit Access 2013 DB to 32-bit SQL Server Express

I have a database in 32-bit Access 2013 that I want to migrate to SQL Server Express. I've only installed the 32-bit version of SQL Server Express and I'm using the 32-bit version of Microsoft SQL Server Migration Assistant for Access, but I get the error
Access Object Collector error: Database
Retrieving the COM class factory for component with CLSID {CD7791B9-43FD-42C5-AE42-8DD2811F0419} failed due to the following
error: 80040154. This error may be a result of running SSMA as 64-bit
application while having only 32-bit connectivity components installed
or vice versa. You can run 32-bit SSMA application if you have 32-bit
connectivity components or 64-bit SSMA application if you have 64-bit
connectivity components, shortcut to both 32-bit and 64-bit SSMA can
be found under the Programs menu. You can also consider updating your
connectivity components from
http://go.microsoft.com/fwlink/?LinkId=197502.
An error occurred while loading database content."
Presumably it's finding something 64-bit somewhere, but I can't work out where to look. I've tried the obvious using the 64-bit version of SQL Server Express, but that gives the same message.
Where do I look next?

jdbc connectivity with MS ACCESS

i am trying to establish a connection with access database using java...
But while trying to configure the database it showing the error as architecture mismatch between driver and the application..
My OS is 64 bit and office is 32 bit.... I resovled the same problem in oracle by placing the jar files C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar and C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar in class path. But How can i solve this problem with access....
A 32-bit ODBC Administrator utility (%WINDIR%\SysWOW64\odbcad32.exe) supplied by Microsoft for its 64-bit OS does not solve the archirecture incompatibility since DSNs defined through it are usable only by apps also running in 32-bit mode.
Fortunately, Microsoft realized the issue and provided a component called “Microsoft Access Database Engine 2010 Redistributable”. You can download it from Microsoft site. After executing AccessDatabaseEngine_X64.exe you will be able to see the MS-Access driver under the normal 64-bit ODBC Administrator.