Hi
My goal is to setup a linked server towards our domain controller (w2k) in order to retrieve information from user accounts.
I've executed the following code to setup the linked server.
sp_addlinkedserver 'ADSI', 'Active Directory Service Interfaces', 'ADSDSOObject', 'adsdatasource'
This code adds the liked server and it appears under the security/linked servers tab in the enterprise manager.
When i click on the "tables" i get the following error message:
"error 7301: Could not obtain a recuired interface from OLE DB provider 'ADSDSOObject'."
And when i try to execute the following query i get an error message saying:
"An error occurred while preparing a query for execution against OLE DB provider 'ADSDSOObject'."
The query used is:
SELECT * FROM OPENQUERY( ADSI, 'SELECT name ''LDAP://mydc/ OU=users,DC=mydomain,DC=local''')
Does anyone have an idea of what might be the problem?
Thankful for all replies.
My goal is to setup a linked server towards our domain controller (w2k) in order to retrieve information from user accounts.
I've executed the following code to setup the linked server.
sp_addlinkedserver 'ADSI', 'Active Directory Service Interfaces', 'ADSDSOObject', 'adsdatasource'
This code adds the liked server and it appears under the security/linked servers tab in the enterprise manager.
When i click on the "tables" i get the following error message:
"error 7301: Could not obtain a recuired interface from OLE DB provider 'ADSDSOObject'."
And when i try to execute the following query i get an error message saying:
"An error occurred while preparing a query for execution against OLE DB provider 'ADSDSOObject'."
The query used is:
SELECT * FROM OPENQUERY( ADSI, 'SELECT name ''LDAP://mydc/ OU=users,DC=mydomain,DC=local''')
Does anyone have an idea of what might be the problem?
Thankful for all replies.