Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

Dose OLE DB provider "MSOLEDBSQL" with SQL Server not supported?

Asked by Cameron Oliver Apr 17, 2021 26 views 1 answer
Share

About this question

I have been using linked server with the old provider (SQLNCLI) without any issue, as recommended by Microsoft, I'm planning to switch to new provider (MSOLEDBSQL). I'm able to add linked server using following T-SQL after installing the drivers


EXEC sp_addlinkedserver @server=N'SQL02DEV1', @srvproduct=N'', @provider=N'MSOLEDBSQL', @datasrc=N'SQL02,1933';Unfortunately, getting following error when I try to query new linked server: Queries that I tried: --- example 1 select * from OPENQUERY ([SQL02DEV1], 'select name from sys.databases'); --- example 2 select name from [SQL02DEV1].master.sys.databases; --- example 3 (without linked server dependency) SELECT c.* FROM OPENROWSET( 'MSOLEDBSQL' , 'Server=SQL02,1933;Database=master;Integrated Security=True;' , 'SELECT name FROM sys.databases;' ) c; Getting same error from all examples:


Out-of-process use of OLE DB provider "MSOLEDBSQL" with SQL Server is not supported.

Does that really mean SQL-2016 is not supported for using new provider MSOLEDBSQL especially in Linked Servers, or is there anything I missed other than re-installing drivers and restarting the SQL Server.

What is ms ole DB provider for SQL server?

Your answer

1 Answer

More SQL Server discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.