Below SQL Query is fine when I execute in SQL Server 2008 but it is not working in SQL Server 2005.
SELECT * INTO "12-2014" FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=C:\ImportExcel\Test.xls', ['12-2014$'])
I am getting this error.
Msg 7403, Level 16, State 1, Line 1
The OLE DB provider "Microsoft.ACE.OLEDB.12.0" has not been registered.
Can anyone help please?
this thread should help you.
essentially this:
First, I want to inform that, Import and Export Data (32-bit) is the default export tool when you right click a database to export data. Let's perform the following steps to export data from SQL Server to Excel with Import and Export Data (64-bit):
- Click Start, All Programs, Microsoft SQL Server 2008 folder, Import and Export Data (64-bit).
- In “Choose a Data Source” step, please choose “SQL Server Native Client” as Data source, and specify your Server name and Database, then click next.
- In “Choose a Destination” step, please choose “Microsoft Office 12.0 Access Database Engine OLE DB Provider”, and then click “Properties…”
- In “Data Link Properties”, under “Connection” tab, please fill out the Date Source (the excel file location, for example: D:\\Temp\\temp.xlsx); under “All” tab, please double click “Extended Properties”, and input “Excel 12.0” (without quotation) as its property value, return to “Connection” tab and click “Test Connection” and we will receive a message stating the connection succeeded, click “OK”.
- Click “Next” until the step “Select Source Tables and Views”, please select the table you want to export there and then click “Next”.
- Follow the wizard and finish the process.
You can also refer to the following link which shows how to import data from Excel to SQL Server with screenshots:
http://hrvoje.piasevoli.com/2010/09/01/importing-data-from-64-bit-excel-in-ssis/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.