Re: adsi linked servers
From: Hal Berenson (haroldb@truemountainconsulting.com)
Date: 12/03/02
- Next message: Tabassum Khan: "Re: Enterprise Manager and Windows Account"
- Previous message: BP Margolin: "Re: Want to deny access to a table automaticaly"
- In reply to: Chris Szabo: "adsi linked servers"
- Next in thread: Lan Lewis-Bevan [MS]: "Re: adsi linked servers"
- Reply: Lan Lewis-Bevan [MS]: "Re: adsi linked servers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Hal Berenson" <haroldb@truemountainconsulting.com> Date: Mon, 2 Dec 2002 21:02:20 -0800
Active Directory only understands a very small, specialized, subset of SQL
(and LDAP is the preferred query language). One consequence of this is that
I don't believe you can get transparent access to the Active Directory data.
That certainly means that Enterprise Manager isn't going to be able to look
at data in Active Directory. OpenQuery should certainly work, if you are
providing a valid ADSI SQL query. The error you report below when using
OpenQuery, 7321, usually means that their is a syntax error in your query.
See the section "Distributed Queries Error Messages" in Books Online. See
the Active Directory documentation for information on their SQL subset.
-- Hal Berenson True Mountain Consulting "Chris Szabo" <cszabo@aerotechlabs.com> wrote in message news:014201c29a3c$06056f90$d3f82ecf@TK2MSFTNGXA10... > I'm creating an application that pulls data from a variety > of sources. Among these sources is a Windows 2000 Active > Directory. As such, I would like to create a linked > server out of the Active Directory repository. > > I'm following the directions for the OLE DB Directory > Service Provider. I add the linked server with this TSQL > command: > > EXEC sp_addlinkedserver 'ADSI', 'Active Directory Services > 2.5', 'ADSDSOObject', 'adsdatasource' > GO > > The server is added successfully, however when I try to > access tables or views through enterprise manager I > receive an error, "Count not obtain a required interface > from OLE DB provider 'ADSDSOObject'". > > If I execute an openquery command from query analyzer I > receive an error message, "n error occurred while > preparing a query for execution against OLE DB > provider 'ADSDSOObject'." > > Does anyone know where I'm going wrong. Any help is much > appreciated. Thanks. >
- Next message: Tabassum Khan: "Re: Enterprise Manager and Windows Account"
- Previous message: BP Margolin: "Re: Want to deny access to a table automaticaly"
- In reply to: Chris Szabo: "adsi linked servers"
- Next in thread: Lan Lewis-Bevan [MS]: "Re: adsi linked servers"
- Reply: Lan Lewis-Bevan [MS]: "Re: adsi linked servers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|