Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

You get 7399 and 7300 error messages when accessing a linked server

View products that this article applies to.


Consider the following scenario:

  • You have a SQL Server instance that is installed on a system that is running Windows Vista or later Operating System.
  • On this instance of SQL Server you configure a linked server to an OLEDB data source  using an OLEDB provider for the data source.
  • The OLEDB provider is configured to be instantiated outside the  SQL Server process. Usually this is the default for most of the OLEDB providers except SQL Native Client. This can be controlled by the Allow inprocess option that can be set using the provider’s properties in SQL Server Mangement Studio.
  • The linked server security is configured to use the be made using the login's current security context option.
In this scenario, if non-privileged users logs into the SQL Server instance using Windows authentication and try to access the linked server, they will experience an error message that is similar to the following:

Msg 7399, Level 16, State 1, Line 1
The OLE DB provider <OLEDB provider name> for linked server <Linked server name> reported an error. The provider did not give any information about the error.

Msg 7330, Level 16, State 2, Line 1
Cannot fetch a row from OLE DB provider <OLEDB provider name> for linked server.

Note: In this context a non-privileged user is a standard user who does not belong to a privileged access group at Windows level (for example: Administrators)

↑ Back to the top


When an OLE DB provider is run out of process, the OLE DB Interface Remoting Dll (msdaps.dll) handles the communication between the proxy side process, in which OLE DB consumer resides, and the stub side process, in which OLE DB provider resides. In the current implementation. OLE DB Remoting uses named file mapping objects to transmit OLE DB rowset data. On systems running Vista or a later version of the operating system, the proxy side and the stub side are run in different sessions because of Session 0 isolation and hence OLE DB Remoting must use a global for proxy-stub communication on these systems. However, since the user account does not have sufficient privileges to create a global file mapping object in the specified linked server configuration, the proxy-stub communication cannot be initiated resulting in error messages discussed in the Symptoms section of this article.

↑ Back to the top


You can workaround the problem using either of the following methods:

Workaround 1: Configure the OLEDB provider to run in-process. 

Note: You cannot use this workaround for OLEDB providers that are based on .Net versions that are earlier than 4.0.

Workaround 2:Assign the users the "Create global objects" user right. To do this, follow these steps: 
  1. Click Start, point to Administrative Tools, and then click Local Security Policy.
  2. Expand Local Policies, and then click User Rights Assignment.
  3. In the right pane, double-click Create global objects.
  4. In the Local Security Policy Setting dialog box, click Add.
  5. In the Select Users or Group dialog box, click the user accounts that you want to add, click Add, and then click OK.
  6. Click OK.

Status: Microsoft is currently working on fixing this issue in a future release of the product.

↑ Back to the top

Keywords: kbovsubscription, kb

↑ Back to the top

Article Info
Article ID : 2450479
Revision : 1
Created on : 1/7/2017
Published on : 4/10/2019
Exists online : False
Views : 305