SQL Server Msg 7399: OLE DB provider reported an error — linked server query failed
A query to a linked server failed because the provider couldn't connect, authenticate or run it.
OLE DB provider reported an errorCannot initialize the data source object of OLE DB providerThe OLE DB provider "SQLNCLI11" for linked server returned message Meaning
Test the linked server (EXEC sp_testlinkedserver), check login mappings, firewall/port, the provider (MSOLEDBSQL, ACE), RPC/RPC Out settings and that the remote object exists. "Cannot initialize the data source object" usually means a provider or credentials problem.
Common causes
- Login mapping missing or wrong password
- Remote server unreachable/firewalled
- Provider not installed or 32/64-bit mismatch
- RPC Out disabled
- Remote object name wrong
⚡ Quick fix
EXEC sp_testlinkedserver 'LS'- Fix the login mapping and provider
- Enable RPC / RPC Out for stored procedures
Detailed fix by platform
SQL
- sql
EXEC sp_testlinkedserver N'REMOTE1'; EXEC sp_serveroption 'REMOTE1', 'rpc out', 'true';
How to diagnose
- Test — Passes?
- Mapping — Valid?
- Provider — Installed?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in SQL
Other ways to find it
Where this error sits
Origin: Data. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 18 Nov 2026