SK: Nice script. However, two things:
1) Could you please edit your code to bring the indentation in to a readable level? It tends to mess up the reading panes for a lot of browsers (including mine).
2) The OP wanted to script out the memberships for SERVER roles, not database roles.
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]