Solved

Active Directory to SQL Server

Posted on 2004-09-16
8
322 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
  • 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
 
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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now