Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Active Directory user attributes - linked server in SQL server

$
0
0

Hi

I have created linked server in SQL 2008 R2 and querying Active Directory using linked server, i need get the user's manager attribute.

It is working but i am getting like below

CN=amy\, ava,OU=Personnel,OU=ABC,OU=US,OU=ABC,DC=XYZ,DC=com.

I just need to get the manager name, in AD under user properties, i can see under the attribute "manager" then the field "name" is populated. But when I query for "Manager" attibute it is giving whole lot then i need. i tried manager:name  it did not work.

Thank you in advance for your help.


Viewing all articles
Browse latest Browse all 12963

Trending Articles