cancel
Showing results for 
Search instead for 
Did you mean: 

How to Limit Rows in ADO query from Active Directory

Former Member
0 Kudos

How do i Limit the number of rows displayed with a SQL Command or Syntax statement? I have tried LIMIT but that does not work.

SELECT CN, OperatingSystem

FROM 'LDAP://DC=domain,DC=edu' WHERE objectClass='computer'

LIMIT 900

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

that syntax does not work for me.

SELECT CN, OperatingSystem SELECT TOP 100 CN FROM 'LDAP://OU=EUC_Devices,OU=CHMC,OU=SCAL,OU=Regional_Sites,DC=domain,DC=edu' WHERE objectClass='computer'

OR

SELECT TOP 100 CN, OperatingSystem FROM 'LDAP://OU=EUC_Devices,OU=CHMC,OU=SCAL,OU=Regional_Sites,DC=domain,DC=edu' WHERE objectClass='computer'

vitaly_izmaylov
Employee
Employee
0 Kudos

I am not sure the LIMIT 900 is correct syntax,

I would try "SELECT TOP 100 CN, ..."