ALTER PROCEDURE [dbo].[UserManagement]
@flag int
AS
BEGIN
IF @flag = 1
BEGIN
SELECT
Formatid, Formatdetail, dispformat
FROM
loy_Formatdetail with (nolock)
WHERE
isactive = '1'
AND memberstatus = 'Member'
ORDER BY
FormatDetail
END
END