PRB: Error 7399 When You Run a Linked Server Query That Uses the OLE DB Provider for Microsoft Jet

Article translations Article translations
Article ID: 814398 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

If you run a linked server query, and you configured the linked server to use the OLE DB Provider for Microsoft Jet, the query may not be successful, and you may receive the following error message:
Error 7399: OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error.
[OLE/DB provider returned message: Unspecified error]
OLE DB error trace [OLE/DB Provider 'Microsoft.Jet.OLEDB.4.0' IDBInitialize::Initialize returned 0x80004005: ].
If you browse the linked server in SQL Server Enterprise Manager, you may also receive the following error message:
Error 7399: OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error.

CAUSE

This problem occurs because the login account does not have full access to the temporary folder of the SQL Server startup account. The linked server query runs in the context of the login account. If you run a linked server query, SQL Server tries to create a temporary file data source name (DSN) in the temporary folder of the SQL Server startup account.

WORKAROUND

To work around this problem, follow these steps:
  1. Log on to the computer by using the SQL Server start up account.
  2. Create a folder named Temp in the operating system installation directory.
  3. Permit full access to a non-administrator account on the Temp folder.
  4. Set the value of the TEMP and TMP user variables of the SQL Server startup account to the newly created Temp folder. To do so, follow these steps:
    1. Right-click My Computer, and then click Properties.
    2. Click the Advanced tab, and then click Environmental Variables.
    3. In the User variables for Logon User list, click TEMP, and then click Edit.
    4. In theVariable Value box, type C:\Temp as the location of the new Temp folder, and then click OK.
    5. Repeat steps c and d to set the value of the TMP variable.
    6. Click OK two times.
  5. Log off, and then log on to the computer by using SQL Server startup account.
  6. Restart the SQL Server services.

REFERENCES

For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
296711 PRB: "Unspecified error" Error 7399 Using OPENROWSET Against Jet Database

Properties

Article ID: 814398 - Last Review: July 11, 2006 - Revision: 4.3
APPLIES TO
  • Microsoft SQL Server 2000 Standard Edition
  • Microsoft SQL Server 7.0 Standard Edition
Keywords: 
kbsecurity kberrmsg kbprb KB814398

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com