UFN_PLANNEDGIFT_RELATIONSHIPS_TOITEMLISTXML

Used to convert the results of UFN_PLANNEDGIFT_RELATIONSHIPS to xml.

Return

Return Type
xml

Parameters

Parameter Parameter Type Mode Description
@PLANNEDGIFTID uniqueidentifier IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  12/17/2008 2:12:54 AM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=1.7.1271.0, Culture=neutral, PublicKeyToken=null
Based on:  UFN_PLANNEDGIFT_RELATIONSHIPS
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_PLANNEDGIFT_RELATIONSHIPS_TOITEMLISTXML](
@PLANNEDGIFTID uniqueidentifier
    )
returns xml
as
BEGIN

RETURN (
SELECT [ID], [RELATIONSHIPID], [SEQUENCE]
 FROM dbo.[UFN_PLANNEDGIFT_RELATIONSHIPS](@PLANNEDGIFTID)
 order by SEQUENCE
 for xml raw('ITEM'),type,elements,root('RELATIONSHIPS'),BINARY BASE64

)

END