Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSIS Transform Script

Status
Not open for further replies.

sparkbyte

Technical User
Sep 20, 2002
879
US
I am using a transform script (VB.Net) to migrate data from an old inherited DB.

I need a way to get user properties from AD.

In the Contacts table the ContactName field is the DisplayName from AD so I can use this to search for the user.

Something like.

If Not Row.ContactName_IsNull Then
If isADsUser = True then​
Row.eMailAddress = ADsProp("DisplayName", Row.ContactName, "mail")​
Row.BusinessPhone = ADsProp("DisplayName", Row.ContactName, "telephoneNumber")​
Row.FirstName = ADsProp("DisplayName", Row.ContactName, "givenName")​
Row.LastName = ADsProp("DisplayName", Row.ContactName, "sn")​
End If​
End If

Any assistance is greatly appreciated!! I have pretty much exhausted Google examples and am at a loss. I have been working in VBA mostly so I am still pretty new to VB.Net but learning.

THANKS!!!!!!!



Thanks

John Fuhrman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top