Accessing public folders with ExOLEDB via SQL-Server

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Italo Anzioso (italo_at_anzioso.de)
Date: 12/01/04

  • Next message: Dave: "MDAC 2.8"
    Date: Wed, 1 Dec 2004 20:55:42 +0100
    
    

    Hi to all.

    On a Win2000 Server running Exchange2K and SQL2K I've created a SQL View
    with to following mechanism:

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/acdata/ac_8_qd_12_0t5x.asp

    EXEC sp_addlinkedserver 'exchange',
    'Exchange OLE DB provider',
    'exoledb.DataSource.1',
    'file:\\.\backofficestorage\localhost\public folders'
    andCREATE VIEW 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:o") Company,
        Convert(nvarchar(50), "urn:schemas:contacts:email1") Email,
        "urn:schemas:contacts:bday" BirthDay
    FROM OpenQuery(Exchange,
      'SELECT "urn:schemas:contact:sn",
               "urn:schema:contacts:givenname",
              "urn:schemas:contacts:o",
            "urn:schemas:contacts:email1"
            "urn:schemas:contacts:bday"
       FROM (''.\contacts'')'
    On the Server-machine everything is well and I've no problems to view the
    data.But if I try to get the data by MS-Access from a client machine using
    an ODBC connection to the SQL Server like:Adding the table as "external
    data -> ODBC -> SQL Server" to MS Access. I can see the table, but if I try
    to get data out of the table I get a message:"Could not create an instance
    of OLE DB provider 'Exoledb.DataSource.1'"Does anybody know what kind of
    problem I'm fighting here?Thanks for any hints Italo Anzioso


  • Next message: Dave: "MDAC 2.8"

    Relevant Pages

    • Re: DMX cmd cant see Access db
      ... You are using SQL Server Management Studio, ... It looks like the error is coming from the Access provider. ... I'm trying to follow the examples from Chapter 5 of "Data Mining With SQL ...
      (microsoft.public.sqlserver.datamining)
    • Linked server to ODBC DSN
      ... Server, and want to create a linked server to this same ODBC DSN: ... Provider = "Microsoft OLE DB Provider for ODBC Driver" ... Then i connect to the SQL Server using QA, and try to run my query (that ...
      (microsoft.public.sqlserver.server)
    • Re: oledb Foxpro provider question.
      ... Your first post threw me off: "Note When you use Visual FoxPro OLE DB ... Provider as a SQL Server-linked server, ... I didn't know that actually used sql server. ...
      (microsoft.public.data.ado)
    • Re: SQL 2005 64bit ODBC Connections to AS400
      ... Finally had success using the ISeries OLE DB provider MSDASQL ... server using Management studio and check the behavior. ... "An error has occurred while establishing a connection to the server. ... connecting to SQL Server 2005, this failure may be caused by the fact ...
      (microsoft.public.sqlserver.connect)
    • Re: non-sa users get access denied in OLE DB query
      ... Ad hoc access to OLE DB provider 'IBMDADB2' has been denied. ... access this provider through a linked server. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
      (microsoft.public.sqlserver.security)