October 31, 2003 at 10:35 am
I have an LDAB database I would like to dump into my SQL database on a regular basis. I would like to create a DTS package, but could not figure out how to connect to the LDAP Database (sp_addlinkedserver maybe?). Thanks
October 31, 2003 at 1:26 pm
I am trying this:
sp_addlinkedserver 'ADSI', 'Active Directory Service Interfaces', 'ADSDSOObject', 'adsdatasource'
exec sp_addlinkedsrvlogin 'ADSI', false, '[local SQL LOGIN]',
'[LDAP DB USER]', '[LDAP USER PASSWORD]'
SELECT * FROM OpenQuery( ADSI, 'SELECT * FROM
''ldap://127.0.0.1,o=[LDAP OBJECT GROUP]''')
And get this:
An error occurred while preparing a query for execution against OLE DB provider 'ADSDSOObject'.
OLE DB error trace [OLE/DB Provider 'ADSDSOObject' ICommandPrepare::Prepare returned 0x80040e14].
I see a lot of people with this error, but not many solutions. I am also trying to connect to an LDAP on a freeBSD box, not a windows server.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply