dbTalk Databases Forums  

SSIS & AD query

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss SSIS & AD query in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brian Shelden
 
Posts: n/a

Default SSIS & AD query - 05-09-2006 , 12:06 PM






I want to use SSIS to query AD and make the data available in data flow. I
am using the "OLE DB Provider for Microsoft Directory Services" and I can get
the query to parse, but get an error when trying to preview the data. This
is the query I'm using:

SELECT cn, distinguishedname
FROM 'LDAP://otisldap.spunkmeyer.com/DC=spunkmeyer,DC=com'
WHERE objectClass = 'computer' order by cn

I am trying to avoid using OpenQuery as I understand it limits the result
set to 1,000 rows and I have more data than that. I could write a .NET app
but it seems like SSIS should be able to handle this.

Any suggestions (on this topic) are welcome!

-- Brian

Reply With Quote
  #2  
Old   
Andrew Watt [MVP]
 
Posts: n/a

Default Re: SSIS & AD query - 05-09-2006 , 04:34 PM






Brian,

What error message do you get?

Andrew Watt MVP

On Tue, 9 May 2006 10:06:01 -0700, Brian Shelden
<BrianShelden (AT) discussions (DOT) microsoft.com> wrote:

Quote:
I want to use SSIS to query AD and make the data available in data flow. I
am using the "OLE DB Provider for Microsoft Directory Services" and I can get
the query to parse, but get an error when trying to preview the data. This
is the query I'm using:

SELECT cn, distinguishedname
FROM 'LDAP://otisldap.spunkmeyer.com/DC=spunkmeyer,DC=com'
WHERE objectClass = 'computer' order by cn

I am trying to avoid using OpenQuery as I understand it limits the result
set to 1,000 rows and I have more data than that. I could write a .NET app
but it seems like SSIS should be able to handle this.

Any suggestions (on this topic) are welcome!

-- Brian

Reply With Quote
  #3  
Old   
Brian Shelden
 
Posts: n/a

Default Re: SSIS & AD query - 05-09-2006 , 05:37 PM



When I click the Preview button, I get an error dialog with these two messages:

Error at Data Flow Task [OLE DB Source]:
An OLE DB error has occured.
Error code: 0x80040E21

Additional information:
Exception from HRESULT:
0xC0202009 (Microsoft.SqlServer.DTSPipelineWrap

Thanks!

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.