Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using wildcard character

Status
Not open for further replies.

FancyPrairie

Programmer
Oct 16, 2001
2,917
US
To prevent data from showing up in a vendor application, the users prefixed the displayName with an asterisk (i.e. "* MyName"). I want to exclude all displayNames that begin with an asterisk. What is the syntax for that?

My select statement looks like this:
Code:
"SELECT  sn, uid, telephoneNumber, roomNumber,  employeeNumber, givenName, displayName, cn FROM 'LDAP://MyServerName:389/ou=users,dc=ad,dc=mhkk,dc=com'" Where (!displayName = '"*"*')
 
Where clause should look like this:

Where displayName <> '\2a*'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top