Answered by:
Retriving data from active directories using ssis

Question
-
I have to load data from active directory. so I have taken ADO.net Source and used the below query to load data:
SELECT distinguishedName,wfc-EmplId,mail, displayName, name,sAMAccountName
FROM 'LDAP://.......'
WHERE whencreated>='20190813000000.0Z'this query is returning an error:
ADsDSOObject failed with no error message available ...
but if I modify the query as below :
SELECT distinguishedName,wfc-EmplId,mail, displayName, name,sAMAccountName
FROM 'LDAP://....'
WHERE whencreated>='20190815000000.0Z' and sAMAccountName ='U123456'resulting output as expected because with this above combination we don't have more records.
but if I remove the accountname condition query returning error.
can anyone explain how to proceed.
Thanks in advance.
- Edited by Divya Damera Friday, August 16, 2019 1:03 PM
- Moved by Richard MuellerMVP, Banned Saturday, August 17, 2019 1:04 AM Not a TechNet Wiki question
Friday, August 16, 2019 12:59 PM
Answers
-
This forum is for questions and discussions about the TechNet Wiki. I would ask here:
https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverDS
Richard Mueller - MVP Enterprise Mobility (Identity and Access)
- Proposed as answer by Dave PatrickMVP Saturday, August 17, 2019 1:45 AM
- Marked as answer by Pete LakerMVP Saturday, August 17, 2019 11:03 AM
- Unmarked as answer by Dave PatrickMVP Saturday, August 17, 2019 1:18 PM
- Marked as answer by Dave PatrickMVP Friday, August 23, 2019 1:23 PM
Saturday, August 17, 2019 12:44 AM -
Also try asking for help over here.
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlintegrationservices
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Richard MuellerMVP, Banned Saturday, August 17, 2019 9:35 PM
- Marked as answer by Dave PatrickMVP Friday, August 23, 2019 1:23 PM
Saturday, August 17, 2019 1:46 AM
All replies
-
Also try asking for help over here.
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlintegrationservices
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Richard MuellerMVP, Banned Saturday, August 17, 2019 9:35 PM
- Marked as answer by Dave PatrickMVP Friday, August 23, 2019 1:23 PM
Saturday, August 17, 2019 1:46 AM