Hi
I am trying to insert rows from MS Access 97 into SQL Server 2008 R2.
My environment is;
Windows 7 (64bit)
Microsoft SQL Server 2008
MS Access 97, Office 2010 Home and Business (no Access) , MS Access 2013.
My T-SQL code is;
USE Events_2014 GO sp_configure 'show advanced options', 1; GO RECONFIGURE; GO sp_configure 'Ad Hoc Distributed Queries', 1; GO RECONFIGURE; GO EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'AllowInProcess', 1 GO EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'DynamicParameters', 1 GO INSERT INTO tblSetupCountries (Country ) SELECT [Events_2014].dbo.fn_title_case(Country) FROM OPENDATASOURCE('Microsoft.ACE.OLEDB.12.0','Data Source="F:\Contacts Manager\Data\Contacts.mdb"')...tblClients GROUP BY Country HAVING (NOT (Country IS NULL)) AND NOT EXISTS (SELECT * FROM tblSetupCountries WHERE tblSetupCountries.Country = Esprit.dbo.tblClients.Country) GO
I get error message;
OLE DB provider 'Microsoft.ACE.OLEDB.12.0' cannot be used for distributed queries because the provider is configured to run in single-threaded apartment mode.
I also tried MICROSOFT.JET.OLEDB.4.0 but got the same error.
How can I resolve this problem please?
Thanks
Regards