UFN_ACCOUNTSTRUCTURE_TOITEMLISTXML

Used to convert the results of UFN_ACCOUNTSTRUCTURE to xml.

Return

Return Type
xml

Parameters

Parameter Parameter Type Mode Description
@ACCOUNTSYSTEMID uniqueidentifier IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  11/30/2010 11:21:12 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.8.2022.0, Culture=neutral, PublicKeyToken=null
Based on:  UFN_ACCOUNTSTRUCTURE
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_ACCOUNTSTRUCTURE_TOITEMLISTXML](
@ACCOUNTSYSTEMID uniqueidentifier
    )
returns xml
as
BEGIN

RETURN (
SELECT [CLOSINGELEMENT], [DESCRIPTION], [ELEMENTDEFINITIONCODE], [ELEMENTTYPECODE], [ID], [ISINUSE], [LENGTH], [SEQUENCE]
 FROM dbo.[UFN_ACCOUNTSTRUCTURE](@ACCOUNTSYSTEMID)
 for xml raw('ITEM'),type,elements,root('GLACCOUNTSTRUCTURE'),BINARY BASE64

)

END