Solved

Active Directory to SQL Server

Posted on 2004-09-16
8
371 Views
Last Modified: 2008-02-01
Is there any way to setup SQL Server to link to Active Directory so I can setup various reports to run automatically querying the SQL server?  I am looking for a solution that will work with my existing setup, so I do not have to purchase expensive software.

Thanks for any help!
0
Comment
Question by:blouckswwu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 7

Expert Comment

by:FDzjuba
ID: 12075666
0
 

Author Comment

by:blouckswwu
ID: 12075940
I am want to be able to query Windows Active Directory users using SQL server.  Your first link is what I am looking for, but it doesn't go into much detail on how to user Enterprise Manager to peform this task.

http://www.experts-exchange.com/Databases/Microsoft_SQL_Server/Q_21064994.html
0
 

Author Comment

by:blouckswwu
ID: 12076089
I found in Enterprise Manager where the linked servers option is.  I attempted to create a link to our primary Active Directory server and I get the following Error.

Error 7301: Could not obtain a required interface from OLE DB provider 'ADsDSOObject'.
OLE DB error trace [OLE/DB Provider 'ADsDSOObject' IUnknown::QueryInterface returned 0x80004002:  IDBSchemaRowset].

There just isn't much information regarding this.  Almost all the links that I have found on the web are broken links to Microsoft.  Its frustrating how Microsoft does not make this very easy and does not provide much information on this.  I believe they want to you just spend $1,000's of dollars on a 3rd party vendor.  I spend enough on their software and I do not want to spend any more on other vendors to get information that their OS should already provide.  Ok ...I'm off the soapbox now...sorry.

Thanks for your input and help!
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 7

Expert Comment

by:FDzjuba
ID: 12076272
try to update Service Pack and MDAC drivers, then try to create link to Active Direcotries

MDAC 2.8 should fix the problem
0
 

Author Comment

by:blouckswwu
ID: 12076581
I installed the MDAC 2.8 (client and SQL server) and I am still having the same problem.  I think I am missing something in my setup.  I just can't find anything on the Internet that tells me what the right settings are to connect to Active Directory.  When I right click on the linked server I created and go to properties there are some settings that need to entered in:

**General Tab**
Product name: Microsoft Active Directory Services
Data source: XXXXX - I put in one of my catalog masters (pdc server)
Provider string: <blank>
Location: <blank>

**Security Tab**
I have setup nothing under the local server login to remote server login mappings section.
0
 
LVL 7

Accepted Solution

by:
FDzjuba earned 500 total points
ID: 12083303
0
 
LVL 12

Expert Comment

by:kselvia
ID: 12099612
0
 

Author Comment

by:blouckswwu
ID: 12101939
I got it to works.  Thanks all for your comments.  
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question