UFN_PROGRAMTAX_GETTAX_TOITEMLISTXML

Used to convert the results of UFN_PROGRAMTAX_GETTAX to xml.

Return

Return Type
xml

Parameters

Parameter Parameter Type Mode Description
@PROGRAMID uniqueidentifier IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  1/27/2010 7:01:15 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.5.465.0, Culture=neutral, PublicKeyToken=null
Based on:  UFN_PROGRAMTAX_GETTAX
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_PROGRAMTAX_GETTAX_TOITEMLISTXML](
@PROGRAMID uniqueidentifier
    )
returns xml
as
BEGIN

RETURN (
SELECT [ID], [NAME], [TAXID]
 FROM dbo.[UFN_PROGRAMTAX_GETTAX](@PROGRAMID)
 order by NAME
 for xml raw('ITEM'),type,elements,root('TAX'),BINARY BASE64

)

END