August 9, 2005 at 3:11 pm
I ran the following select from SQL Query Analyzer.
select count(*) as totalCount FROM OPENROWSET('ADSDSOObject',
'adsdatasource;', 'SELECT displayName from ''LDAP://uspld104.amer.corp.xxxxxx.com'' where objectClass = ''User'' ')
It only returns 1000 rows. Any ideas what or where the limit is set?
I know the result set has a large number of rows. Thanks
August 9, 2005 at 9:07 pm
???shouldn't count(*) return only one row??? - I'm confused...
however, if it was a "select * from..", I believe "Set Rowcount 0" before the query should be a possible fix (came across this on some website - sorry, lost the link...)
**ASCII stupid question, get a stupid ANSI !!!**
August 9, 2005 at 10:08 pm
Yes, you are correct. Count(*) returns only 1 row but it is the value of count that is incorrect. That count value should not be 1000 but approximately 155,000+. thanks.
August 9, 2005 at 10:11 pm
I did SET ROWCOUNT 0 but the count value is still 1000.
August 9, 2005 at 10:47 pm
I think that you will find that the reason is in the ADSDSOObject, re:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/ldap_dialect.asp
http://support.microsoft.com/default.aspx?scid=kb;en-us;269361
Andy
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply