How to query the Active directory using SQL Server 2005
hi,
i trying query active server sql server 2005 , getting error
i used following script create link server
exec sp_addlinkedserver 'adsi3', 'active directory services 111', 'adsdsoobject', 'adsdatasource'
and trying connect using following statement
select
* from openquery(adsi, 'select * ''ldap://dc=local.mycompany.ca'' objectcategory=''user'' ')
and getting following error
an error occurred while preparing query "select * 'ldap://dc=local.resound.ca' objectcategory='user' " execution against ole db provider "adsdsoobject" linked server "adsi".
please let me know if know how query active directory using sql server 2005
thanks,
raj
dreaming world without war in anywhere
SQL Server > SQL Server Data Access
Comments
Post a Comment