![]() |
|
| Answered 2/9/2012 2:20:08 PM by Ray Barley |
(0)
|
|
Is your Windows 2008 and SQL Server 2008 R2 running 64 bit? There are 64 bit drivers available; see http://www.microsoft.com/download/en/details.aspx?id=13255 to download. |
|
| Answered 2/9/2012 2:32:08 PM by Jeremy Kadlec |
(0)
|
|
Ray, Great point! It could be a driver compatibility issue as well. Thank you,
|
|
| Answered 2/9/2012 3:35:08 PM by amir younas |
(0)
|
|
Jeremy, i try to it using '\' but still give the same error. |
|
| Answered 2/9/2012 6:30:32 PM by amir younas |
(0)
|
|
Jeremy, Thanks for your kind response. amir, |
|
| Answered 5/15/2012 3:25:15 AM by Reiner Wellmann |
(0)
|
|
I've too struggled a LOT with this issue and here's the answer to this. In order to access Excel/Access files from SQL Server X64 here's what's important. Before even trying there can't be anything Office x86 related installed on the Box. If it is please uninstall. Then install this: http://www.microsoft.com/en-us/download/details.aspx?id=13255 Then follow the directions here : http://www.excel-sql-server.com/excel-import-to-sql-server-using-distributed-queries.htm Now you can use either : SELECT * FROM OPENROWSET ( 'Microsoft.ACE.OLEDB.12.0' ,'Excel 12.0;Database=D:\TEMP\Excel_File.xlsx' ,[Sheet1$] ) OR use SELECT * FROM OPENDATASOURCE ( 'Microsoft.ACE.OLEDB.12.0' ,'Data Source=\\Server\Share\Access_DB.mdb' )...[Table_Name] Now it works. Should you really need Office installed, try it and see what's happening. I haven't dared yet. Post back with your results. |
|
|
privacy | disclaimer | copyright | advertise | about authors | contribute | feedback | giveaways | user groups Some names and products listed are the registered trademarks of their respective owners. Edgewood Solutions LLC | MSSharePointTips.com | MSSQLTips.com |