Authentication failed for linked server

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: SHIvan (anonymous_at_discussions.microsoft.com)
Date: 02/17/04


Date: Tue, 17 Feb 2004 06:26:49 -0800

when I run this query :

EXEC sp_addlinkedserver 'exchange','Exchange OLE DB
provider','exoledb.DataSource.1',
'file://./backofficestorage/domain-name.com/public
folders';

CREATE VIEW V_Contacts
AS
SELECT convert(nvarchar(30),"urn:schemas:contacts:sn")
LastName,
Convert(nvarchar(30),"urn:schemas:contacts:givenname")
FirstName,
Convert(nvarchar(30), "urn:schemas:contacts") Company,
Convert(nvarchar(50), "urn:schemas:contacts:email1") Email,
"urn:schemas:contacts:bday" BirthDay
FROM OpenQuery(Exchange,'SELECT "urn:schemas:contact:sn",
"urn:schemas:contacts:givenname",
"urn:schemas:contacts",
"urn:schemas:contacts:email1",
"urn:schemas:contacts:bday"
FROM SCOPE(''.\contacts'')')

I get the following error ->
Server: Msg 7399, Level 16, State 1, Procedure V_Contacts,
Line 3
OLE DB provider 'exoledb.DataSource.1' reported an error.
Authentication failed.
OLE DB error trace [OLE/DB Provider 'exoledb.DataSource.1'
IDBInitialize::Initialize returned 0x80040e4d:
Authentication failed.].

I am logged in with the sa via SQL authentication,
If I try to log in with windows aythentication( and my own
user) I get an Acces denied error.

Anyone got any idea how to fix this?
What kind of rights do I need to get past this problem?



Relevant Pages

  • Exporting ToExcel file
    ... send the result of a query into this file. ... OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error. ... [OLE/DB provider returned message: Cannot start your application. ... IDBInitialize::Initialize returned 0x80040e4d: Authentication failed.]. ...
    (microsoft.public.sqlserver.tools)
  • Authentication Failure
    ... "urn:schemas:contacts:bday" BirthDay ... OLE DB provider 'exoledb.DataSource.1' reported an error. ... OLE DB error trace [OLE/DB Provider 'exoledb.DataSource.1' ... Authentication failed.]. ...
    (microsoft.public.exchange.admin)
  • authentication failed for Linked Server
    ... "urn:schemas:contacts:bday" BirthDay ... OLE DB provider 'exoledb.DataSource.1' reported an error. ... OLE DB error trace [OLE/DB Provider 'exoledb.DataSource.1' ... Authentication failed.]. ...
    (microsoft.public.exchange2000.admin)
  • Problems with authentication
    ... "urn:schemas:contacts:bday" BirthDay ... OLE DB provider 'exoledb.DataSource.1' reported an error. ... OLE DB error trace [OLE/DB Provider 'exoledb.DataSource.1' ...
    (microsoft.public.exchange.connectivity)
  • Re: OLEDB reports IS is not running
    ... Could not execute query against OLE DB provider 'msidxs'. ... OLE DB error trace [OLE/DB Provider 'msidxs' ...
    (microsoft.public.inetserver.indexserver)