В SQL Server 2008 (версия 10.0.4000) я создал сервер, связанный с сервером Active Directory.
Этот запрос:
select TOP 901 *
from openquery(adsisca, '
select givenName,
sn,
sAMAccountName
from ''LDAP://10.1.2.3:389''
where objectCategory = ''Person''
and
objectClass = ''InetOrgPerson''
')
работает.
Однако изменение запрос и попытка получить 902 строки не дает:
select TOP 902 *
from openquery(adsisca, '
select givenName,
sn,
sAMAccountName
from ''LDAP://10.1.2.3:389''
where objectCategory = ''Person''
and
objectClass = ''InetOrgPerson''
')
Ошибка:
Сообщение 7330, уровень 16, состояние 2, строка 1 Невозможно получить строку из OLE DB провайдер "ADSDSOObject" для связанных server "adsisca".
I've found other instances of people discussing the same problem on forums and they never fixed it, just worked around it writing multiple views and union'ing them together for example.
Is there a more elegant fix, is there a setting I can change somewhere to retrieve more than 901 rows?