UFN_PDACCOUNTSTRUCTURE_NUMBEROFSEGMENTS

Returns the number of segments that make up an account string

Return

Return Type
int

Definition

Copy


CREATE function dbo.UFN_PDACCOUNTSTRUCTURE_NUMBEROFSEGMENTS()
returns int
with execute as caller
as begin
    return (select count(*) from dbo.PDACCOUNTSTRUCTURE where PDACCOUNTSYSTEMID='4B121C2C-CCE6-440D-894C-EA0DEF80D50B')
end