Solved

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

Posted on 2004-04-13
6
814 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

757 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now