|
gangadhara.ms
Aged Yak Warrior
India
502 Posts |
Posted - 12/05/2012 : 03:02:35
|
Hi, I am using the below query to fetch records from LDAP server
SELECT * FROM OpenQuery(ADSI, 'SELECT uid,MSUsername,DisplayName,mail FROM ''LDAP://aaa.xxx.com'' where objectClass = ''Person'' AND MSUsername = ''pmelody*'' ')
Here i want to include the condition for another where clause for NULL
SELECT * FROM OpenQuery(ADD, 'SELECT uid,MSUsername,DisplayName,mail FROM ''LDAP://aaa.xxx.com'' where objectClass = ''Person'' AND MAIL is null AND MSUsername = ''pmelody*'' ')
Its giving up with an error pls help.
Thanks, Gangadhara MS SQL Developer and DBA |
|