Have following (using linked server)select * from openquery(ADSI_10_xx_x_3, ' select title, sAMAccountName, displayName from ''LDAP://DC=Vecelliogroup,DC=COM'' where objectClass = ''User''')
Query returns correct result:displayname sAMAccountname Title VGIBEW03-SMTP$ VGIBEW03-SMTP$ NULLRGWPW03-TS$ RGWPW03-TS$ NULLVGIWPPGP$ VGIWPPGP$ NULL
Now I would like to add to the "where" clause where title is not null like this:select * from openquery(ADSI_10_92_4_3, ' select title, sAMAccountName, displayName from ''LDAP://DC=Vecelliogroup,DC=COM'' where objectClass = ''User'' and title IS NOT Null')
I have tried different ways but cannot seem to get the syntax correct (An error occurred while preparing the query)