CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Brendan Tompkins [MVP]

Blog First. Ask Questions Later.

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



Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add

About Brendan Tompkins

Brendan has been programming with .NET since the first public beta and is owner and operator of Port Technology Services, a consultancy company providing .NET application development services to the Maritime industry. In July, 2007, he was awarded the Microsoft MVP award for ASP.NET. He's also a proud co-founder of failed .COM startup Intrinsigo, and has had a hand in the failure of numerous other businesses. He currently runs CodeBetter.Com and Devlicio.us, and lives in Norfolk, Virgina with his wife Tiara and son Ian.

View Brendan's profile on LinkedIn

Check out Devlicio.us!

Our Sponsors

Free Tech Publications