UFN_PROGRAMTAX_GETPROGRAMS_TOITEMLISTXML

Used to convert the results of UFN_PROGRAMTAX_GETPROGRAMS to xml.

Return

Return Type
xml

Parameters

Parameter Parameter Type Mode Description
@TAXID uniqueidentifier IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  7/16/2009 11:16:48 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.1.30.0, Culture=neutral, PublicKeyToken=null
Based on:  UFN_PROGRAMTAX_GETPROGRAMS
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_PROGRAMTAX_GETPROGRAMS_TOITEMLISTXML](
@TAXID uniqueidentifier
    )
returns xml
as
BEGIN

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

)

END