... configuring,494–5 02 UPN-style usernames, 484–485ADAM (Active Directory Application Mode)application partition, using, 5 10 5 12 installation with an application partition, 504 –5 10 overview, 503 – 504 AddUsersToRole ... nvarchar (25 6),@pUsername nvarchar (25 6),@pRolename nvarchar (25 6) )returns bitasbegindeclare @retval bitif exists (select 1from dbo.vw_aspnet_Users u,dbo.vw_aspnet_Applications a,dbo.vw_aspnet_Roles ... a.ApplicationId and r.LoweredRoleName = LOWER(@pRolename) and r.RoleId = uir.RoleId and u.UserId = uir.UserId)set @retval = 1elseset @retval = 0 return @retvalendgo5 70 Chapter 1417_596985 ch14.qxp 12/ 14 /05 ...