Dan Guzman - Not the MVP (8/5/2014)
I upgraded my 2008 R2 instance to 2012 and the Linked Server I use for aconnect to a csv file stopped working.Create script:
EXEC sp_addlinkedserver @server ='Stats_CA',
@srvproduct='',
@provider ='Microsoft.ACE.OLEDB.12.0',
@datasrc='D:\RLAPPS\Stats\Stats_CA\',
@provstr='Text'
Error message:
OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "Stats_CA" returned message "Unspecified error".
Msg 7303, Level 16, State 1, Line 2
Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "Stats_CA".
I uninstalled and reinstalled the AccessDatabaseEngine - no change.
The provider is displayed, so it's not that.
I veriified temp and csv location folder permissions
I tried the -g512 startup option
The csv has a schema.ini as required
It was an 'in place' upgrade, so nothing else has change.
What am I missing?!?!?!
So frustrated.
Assuming that the correct provider is installed (32 or 64 bit), I suspect that you will need to set a couple properties on the provider to make this work.
Try running the following...
USE [master]
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
Already tried that, sorry didn't mention it above.
Also, provider is x64 for my Win 2008 R2 x64 OS on the server.
My reading, and attempted installs show that Jet doesn't work for x64, so I had to go with ACE x64.
Dan Guzman - Not the MVP (8/6/2014)
My reading, and attempted installs show that Jet doesn't work for x64, so I had to go with ACE x64.
Also, it's as single use file, just connecting long enough to read the data for a compare, then come back and 'INSERT' it into another table, with conversions and such in an SP, so none of those other items really apply. Plus it worked up until a few weeks ago.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply