UFN_PLEDGE_GETINSTALLMENTSPLITS_TOITEMLISTXML

Used to convert the results of UFN_PLEDGE_GETINSTALLMENTSPLITS to xml.

Return

Return Type
xml

Parameters

Parameter Parameter Type Mode Description
@PLEDGEID uniqueidentifier IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  3/19/2013 1:19:37 AM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=3.0.504.0, Culture=neutral, PublicKeyToken=null
Based on:  UFN_PLEDGE_GETINSTALLMENTSPLITS
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_PLEDGE_GETINSTALLMENTSPLITS_TOITEMLISTXML](
@PLEDGEID uniqueidentifier
    )
returns xml
as
BEGIN

RETURN (
 SELECT 
  [AMOUNT],
  [DESIGNATIONID],
  [ID],
  [INSTALLMENTID],
  [REVENUESPLITID]
 FROM dbo.[UFN_PLEDGE_GETINSTALLMENTSPLITS](@PLEDGEID)
 order by ID
 for xml path('ITEM'),type,elements,root('INSTALLMENTSPLITS'),BINARY BASE64

)

END