Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
goss
Starting Member
29 Posts |
Posted - 2014-07-14 : 23:04:37
|
Hi all,Using SQL Server 2012 Developer Edition. I am trying to import an .xlsx worksheet using ACE12.0 Driver.I believe I tried everything in this blog post from Visakh : http://visakhm.blogspot.com/2013/12/how-to-solve-microsoftaceoledb120-error.htmlBut I am still receiving this error message:quote: OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" returned message "Unspecified error".Msg 7303, Level 16, State 1, Line 2Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)".
What else can I try?thxwKind regards,-w |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2014-07-14 : 23:24:51
|
do you have the driver installed on the same machine as your SQL Server ?is the excel file located on the same machine ? KH[spoiler]Time is always against us[/spoiler] |
|
|
goss
Starting Member
29 Posts |
Posted - 2014-07-15 : 21:59:34
|
Thanks khtan,I see Microsoft.ACE.OLEDB.12.0 here in Management Studio:Server Objects >> Linked Servers >> Providers >> ...ACE...Everything is one machinethxwKind regards,-w |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2014-07-15 : 22:36:41
|
can you show us the query ?also what is the name of the worksheet you are trying to access ? KH[spoiler]Time is always against us[/spoiler] |
|
|
goss
Starting Member
29 Posts |
Posted - 2014-07-15 : 22:41:04
|
The name of the worksheet is Sheet1Use ExcelDBSelect * Into tblTest FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0', 'Excel 12.0;Database=C:\Data\NFL Teams.xlsx;HDR=Yes', 'SELECT * FROM [sheet1$]') Kind regards,-w |
|
|
goss
Starting Member
29 Posts |
Posted - 2014-07-16 : 21:50:52
|
BumpKind regards,-w |
|
|
|
|
|
|
|