SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Opendatasource problems with excel


Opendatasource problems with excel

Author
Message
Quinn-793124
Quinn-793124
Say Hey Kid
Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)

Group: General Forum Members
Points: 705 Visits: 465
I have been working on getting opendatasource to work with excel. I have just been using select just to get the ole db thing working before I move on to updates.

Here is what I have come up with:

select * from opendatasource('Microsoft.Jet.OLEDB.4.0',
'DataSource=C:\PIDExcelTest\6322done.xls;
user id=Admin;password=;Extended properties=Excel 5.0')...[6322missing$]

Here is the error I am getting:

OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)" returned message "Could not find installable ISAM.".
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)".

I am not sure what is causing that error. Any help would be greatly appreciated.

I am using excel 2002 and sqlserver express 2005.

Thanks you.

Quinn
GSquared
GSquared
SSC Guru
SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)

Group: General Forum Members
Points: 58365 Visits: 9730
I found this thread using your error message:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=815084&SiteID=1

See if that has what you need. If not, copy the error into a search string and go from there. That's what I always do, and it almost always works.

- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread

"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
Quinn-793124
Quinn-793124
Say Hey Kid
Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)

Group: General Forum Members
Points: 705 Visits: 465
Thanks for the link.

There was nothing there that seemed to stand out as being a problem with my connection. The version of msexcl40.dll is the same on both machines.

I am assuming that they are installed correctly.

Thanks

Quinn
Jeff Moden
Jeff Moden
SSC Guru
SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)

Group: General Forum Members
Points: 217014 Visits: 41991
Heh... I've seen lot's of folks do it... they sit there with the spreadsheet open and try to run the code to populate. That will give such an error.

Also, you have to enable the server to do "ad hoc" queries. There's a registry entry that must be changed for that... I don't remember what the entry is, but I do remember it was a fairly easy Google.

Also, the server must have privs to C:\Temp because it will use some of that directory to do some of it's work. By default, the server doesn't have such access, if I recall correctly.

--Jeff Moden

RBAR is pronounced ree-bar and is a Modenism for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
Quinn-793124
Quinn-793124
Say Hey Kid
Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)

Group: General Forum Members
Points: 705 Visits: 465
Thanks for the help.

I enabled ad-hoc queries from surface area configuration. Nobody is in the excel ss.

As far as server permissions to c:\temp do you mean the SQL Server of the server that I am getting the data from.

Thanks

Quinn
Jeff Moden
Jeff Moden
SSC Guru
SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)

Group: General Forum Members
Points: 217014 Visits: 41991
I mean C:\temp on the SQL Server that's doing the reading.

--Jeff Moden

RBAR is pronounced ree-bar and is a Modenism for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
Quinn-793124
Quinn-793124
Say Hey Kid
Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)

Group: General Forum Members
Points: 705 Visits: 465
Jeff

I am assuming that sqlserver have access to c:\temp sence the account that SQL is running on is administrator and adminitrator have full access.

Thanks.

Quinn
Glen Sidelnikov
Glen Sidelnikov
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1817 Visits: 804
Shouldn't it be Excel 8.0 for Excel 2002 in extended properties.
Also, MS recommends using OPENDATASOURCE for only infrequent access. Did you try linked server instead?

http://support.microsoft.com/kb/321686
Quinn-793124
Quinn-793124
Say Hey Kid
Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)Say Hey Kid (705 reputation)

Group: General Forum Members
Points: 705 Visits: 465
Glen

I have already changed it to 8.0 instead of 5.0.

I have tried using a linked server and got the same error. I have 50 excel spreadsheets that need to be updated from SQLServer. I was looking at the book SQLServer 2005 bible where they discuss accessing excel using opendatasource. I was thinking this could be the solution to my problem. If there is a better way to get that done I am open to other suggestions. I also tried openrowsource and got the same error.

Thanks

Quinn
Glen Sidelnikov
Glen Sidelnikov
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1817 Visits: 804
One of your previous postings saying that you have two servers?
Does it mean that your Excel file located on a server different from the server where SQL server is located?
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search