Forum Discussion
Santosh20
Nov 05, 2023Copper Contributor
How to import data in SQL server from excel
Hello Experts
I am trying to import data from Excel to SQL server table using OPENROWSET and it gives me below error.
Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machineā
I'm using above provider in my code, can someone also correct me if I am using correct provider or I need to use different to read data from Excel?
My Excel file is placed on Azure storage account and I am using UNC path to read data in SQL script
Thanks
- Arshad440Brass Contributorcould you provide the script you used.
- Santosh20Copper ContributorI am using
Select * from oenrowset( provider name and path of Excel file)
- Matt_GriffithsCopper Contributor
- olafhelperBronze Contributor
My Excel file is placed on Azure storage accountACE data provider don't support Azure storages.
- Santosh20Copper ContributorThanks olafhelper,
So could you please suggest me a workaround?
How I can read data from Excel using OPENROWSET in SQL MI ?
- Arshad440Brass ContributorHi,
would you try to import the excel into SQL server using SQL server Import And Export Data Console Window.