How to Query Active Directory using LDAP in SQL Server 2000 / 2005 ?

Step 1:- Add a linked server for the Active Directory exec sp_addlinkedserver ‘ADSI’, ‘Active Directory Services 2.5’, ‘ADsDSOObject’, ‘adsdatasource’ Step 2 :- Then follow the steps mentioned here for setting … Read More “How to Query Active Directory using LDAP in SQL Server 2000 / 2005 ?”