Solved

openRowSet returning " Could not create an instance of OLE DB provider 'SQLOLEDB'. "

Posted on 2004-04-13
6
823 Views
Last Modified: 2011-09-20
i am migrating a mssql7 db on nt4 to a mssql7 database on win2k.

on the new server there is an openrowset query returning " Could not create an instance of OLE DB provider 'SQLOLEDB'. "
     SELECT *
     FROM OPENROWSET ( 'SQLOLEDB', 'GROVER';'uid';'pswd', 'stored procedure' ) AS Hierarchy,
     FH_Media_Cat_213 AS Media_Ref WHERE Hierarchy.V_ID = 213 AND Hierarchy.H_ID = Media_Ref.Cat_ID

this query works fine on the old server, but for some reason doesn't on the new one.  i have added grover to the system odbc datasources with no change.

any ideas?
0
Comment
Question by:meyerc74
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
6 Comments
 
LVL 4

Accepted Solution

by:
BulZeyE earned 150 total points
ID: 10815689
Sounds like an issue with dlls and possibly versions.  Have you tried getting the latest MDAC from Microsoft ?

http://msdn.microsoft.com/data/downloads/updates/default.aspx
0
 
LVL 1

Author Comment

by:meyerc74
ID: 10815701
yes...installed mdav 2.8 prior to post
0
 
LVL 2

Assisted Solution

by:BoyPupa
BoyPupa earned 100 total points
ID: 10819739
You code says you're using sqloledb but you mention a dsn named GROVER.

Typically you would use sqloledb to establish a direct server connection without a DSN

eg:
 SELECT *
     FROM OPENROWSET ( 'SQLOLEDB', 'ServerName';testUser;'pswd', 'exec tempdb.dbo.sampleProc' )

to use a dsn it makes more sense to use msdasql odbc provider

eg:
SELECT *
FROM OPENROWSET('MSDASQL','DSN=sqlTest;UID=testUser;PWD=pswd;','exec sampleProc')
0
 
LVL 2

Expert Comment

by:BoyPupa
ID: 10819746
Sorry the sqloledb should read
 SELECT *
     FROM OPENROWSET ( 'SQLOLEDB', 'ServerName';'testUser';'pswd', 'exec tempdb.dbo.sampleProc' )
0
 
LVL 1

Author Comment

by:meyerc74
ID: 11547976
this actually ended up beinga versions issue
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how the fundamental information of how to create a table.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question