Search

onze sponsors

microsoft_logo.gif


 

computrain_logo.JPG

Forum Login | Register
   Forum

 

Subject: OPENROWSET error
Prev Next
You are not authorized to post a reply.

Author Messages
Colin van ViegenUser is Offline

Posts:4

18-11-2008 17:16:44 Alert 
Since the upgrade from SQL 2000 to SQL 2005 we have issues with the OPENROWSET function.

All standard settings have been configured like:

- DisallowAdhocAccess registry Setting explicit to (0) for each Provider
- Enable OPENROWSET and OPENDATASOURCE support in SQL Server Service Area Configuration
- Enable Ad Hoc Distributed Queries

, but still we recieve the following error:

OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)" returned message "Unspecified error".
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)".


Many searchhits in Google, but none yet with the right answer.

All previous used OPENROWSET queries in our SQL2000 Server are still in use, but within a SQL2005 server they fail continuously.

Which setting are we forgetting??
for the record... There is no syntax error in the code. It works fine in a SQL2000 environment, but fails in a SQL2005 environment.

An example of the use is:

SELECT *
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0','C:\TEMP\273.mdb';'admin';'','SELECT * FROM Export') P


Help is welcome!!

Regards,
Colin

Vladimir EricUser is Offline

Posts:6

12-12-2008 17:04:18 Alert 
Is your linked server maybe gone with conversion?

Linked servers are not stored per database but in master database.

Try:
select * from sysservers

You are not authorized to post a reply.
Forums > Forums > DBA > OPENROWSET error



ActiveForums 3.6
  
Copyright (c) 2012 PASS Nederland   Privacy Statement  Terms Of Use