r/SQL • u/dzemperzapedra • Aug 02 '26
SQL Server Importing from Excel using 'from openrowset()' returns OLE DB error
Hey everyone,
I'm trying to make this user stored procedure work on my colleagues PC, I can run it just fine.
Basically it's a USP created for importing data from an Excel file stored on shared network (local server).
It's goes like this:
select *
from openrowset ( 'Microsoft.ACE.OLEDB.12.0', 'Excel 12.0 Xml;Database="path\file.xlsx, sheet$ )
Me and one other colleague can run it just fine, but on one colleagues PC, it gives this error:
OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" returned message"Failure creating file"
Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)"
Any help with resolving this would be much appreciated.
Thanks!
View all comments
Show parent comment
1
u/dzemperzapedra Aug 02 '26
Ah I thought they meant SSMS, not sure which version is SQL server though, but if it works for me, it should work on this other machine as well.
Copy it locally meaning import using SSMS?
Regarding other proposed solutions, unfortunately I'm working with work environment so don't have necessary admin level permissions.