UFN_NAMEFORMATDEFAULT_PRIMARYADDRESSEECOUNT
Returns the number of primary addressee name format defaults for a constituent type.
Return
| Return Type |
|---|
| int |
Parameters
| Parameter | Parameter Type | Mode | Description |
|---|---|---|---|
| @APPLYTOCODE | tinyint | IN |
Definition
Copy
create function dbo.UFN_NAMEFORMATDEFAULT_PRIMARYADDRESSEECOUNT
(
@APPLYTOCODE tinyint
)
returns int
with execute as caller
as
begin
return (select count(*) from dbo.NAMEFORMATDEFAULT where APPLYTOCODE = @APPLYTOCODE and PRIMARYADDRESSEE = 1)
end