Brendan Tompkins [MVP]

Sponsors

The Lounge

News

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
From Active Directory to SQL Relational Data

Here at the port, we use AD as our back-end user account and group store, like I'm sure many of you do.  To relate user data in our SQL database to these accounts, we have a slimmed down user table that looks like this:

[GN_USER_ID] [int] IDENTITY (1, 1) NOT NULL ,
[GN_USER_AD_LOGIN] [varchar] (50) NOT NULL ,
[GN_USER_AD_GUID]  uniqueidentifier ROWGUIDCOL  NOT NULL

etc.  We use the GN_USER_AD_GUID column to lookup the AD user in the store when we need user info, email, etc.  This works great, and we have a bunch of utilities to get the AD user, etc. But, my boss just came in and now wants to do some reporting on this data. 

I'd like to create a cube that contains a bunch of user data, but the problem is much of the data is embedded in the AD store, and not in SQL.  It looks like I can use a the OLE DB Provider for Microsoft Directory Services is to create a linked server.  So here's my question. Has anyone out there done this?  I'm thinking that with Yukon, I'll be able to use our existing AD .NET classes and hopefully pull this AD data into the SQL world.

-Brendan


Posted 12-19-2003 8:27 AM by Brendan Tompkins

[Advertisement]

Comments

Veintitrés Puros wrote re: From Active Directory to SQL Relational Data
on 12-19-2003 3:56 AM
There's lots of stuff out there on this. For one, see Re: Active Directory Available as Linked Server? at http://groups.google.com/groups?q=Query+Active+Directory+from+SQL+Server&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=CJscpSE%24BHA.2260%40cpmsftngxa08&rnum=2

-The .NET Sheriff
Brendan Tompkins wrote re: From Active Directory to SQL Relational Data
on 12-19-2003 6:12 AM
Found this, which shows exactly how to do it:

"Joining Heterogeneous Data"

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/joining_heterogeneous_data.asp
Brendan Tompkins wrote Create a SQL Server View of your AD Users
on 12-19-2003 8:43 AM

Add a Comment

(required)  
(optional)
(required)  
Remember Me?