OpenQuery-条件中的physicalDeliveryOfficeName

时间:2019-02-22 13:59:19

标签: sql openquery

在我的查询中,第二个条件不起作用,显示带有99999的字段,您能帮我吗?

SELECT *    FROM OpenQuery(AD, 
'SELECT     sAMAccountName, physicalDeliveryOfficeName
FROM        ''LDAP://ou=....''
WHERE       objectCategory=''user'' and physicalDeliveryOfficeName<>''99999'')

see image with error

0 个答案:

没有答案