I have queried Active Directory for a list of groups a particular user belongs to (comes back in an array). First, I need to loop through the array looking to see if any of 6 particular groups exist. Then, if any of them do exist, i need to update a table with this information. I am basically populating a table with userid and groupid combinations. Should I put this code in a for loop and send each individual insert to the database within the loop? i'm sure that's not the best way, any ideas here?