Stored Procedures [dbo].[MssWebUpdateEmailSignatureDefault]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@inSysUserIdint4
@inSignatureIdint4
@inDefaultbit1
Permissions
TypeActionOwning Principal
GrantExecuteMssExec
SQL Script
CREATE procedure [dbo].[MssWebUpdateEmailSignatureDefault]
    @inSysUserId int,
    @inSignatureId int,
    @inDefault bit
as
begin
    update SysuserEmailSignature
    set DefaultFlag =
        case
            when SysUserEmailSignature.SysuserEmailSignatureID = @inSignatureId then @inDefault
            when @inDefault = 1 then 0
            else SysuserEmailSignature.DefaultFlag
        end
    where SysuserEmailSignature.SysuserFID = @inSysUserId
end
GO
GRANT EXECUTE ON  [dbo].[MssWebUpdateEmailSignatureDefault] TO [MssExec]
GO
Uses