Stored Procedures [dbo].[Forum_Avatar_Role_GetUserRoles]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@UserIDint4
SQL Script


CREATE PROCEDURE dbo.[Forum_Avatar_Role_GetUserRoles] ( @UserID INT )
AS
    SELECT  RoleID
    FROM    dbo.UserRoles
    WHERE   UserID = @UserID
            AND (EffectiveDate < GETDATE() OR EffectiveDate IS NULL)
            AND (ExpiryDate > GETDATE() OR ExpiryDate IS NULL)

GO
Uses