A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
What is the purpose of this proc? Are you constantly adding users?
You want users to be in an AD group and you manage rights to the AD group in SQL Server, NOT individual users. Then you manage who is in the group in AD.