USP_PHONEFORMATTING_ENABLEDISABLE
Executes the "Phone Formatting: Toggle" record operation.
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | nvarchar(1) | IN | Input parameter indicating the ID of the record being updated. |
@CHANGEAGENTID | uniqueidentifier | IN | Input parameter indicating the ID of the change agent invoking the update. |
Definition
Copy
create procedure dbo.USP_PHONEFORMATTING_ENABLEDISABLE
(
@ID nvarchar,
@CHANGEAGENTID uniqueidentifier
)
as
set nocount on;
begin try
update
dbo.INSTALLATIONINFO
set
FORMATPHONES = case when FORMATPHONES = 1 then 0 else 1 end
where
ID = 1;
return 0;
end try
begin catch
exec dbo.USP_RAISE_ERROR;
return 1;
end catch