UFN_PROSPECTPLAN_GETSECONDARYFUNDRAISERS_TOITEMLISTXML

Used to convert the results of UFN_PROSPECTPLAN_GETSECONDARYFUNDRAISERS to xml.

Return

Return Type
xml

Parameters

Parameter Parameter Type Mode Description
@PROSPECTPLANID uniqueidentifier IN
@STATUS nvarchar(25) IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  2/1/2011 9:03:10 AM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.9.1001.0, Culture=neutral, PublicKeyToken=null
Based on:  UFN_PROSPECTPLAN_GETSECONDARYFUNDRAISERS
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_PROSPECTPLAN_GETSECONDARYFUNDRAISERS_TOITEMLISTXML](
@PROSPECTPLANID uniqueidentifier
, @STATUS nvarchar(25)
    )
returns xml
as
BEGIN

RETURN (
SELECT [DATEFROM], [DATETO], [FUNDRAISERID], [ID], [NAME], [SOLICITORROLECODE], [SOLICITORROLECODEID]
 FROM dbo.[UFN_PROSPECTPLAN_GETSECONDARYFUNDRAISERS](@PROSPECTPLANID, @STATUS)
 order by NAME
 for xml raw('ITEM'),type,elements,root('SECONDARYFUNDRAISERS'),BINARY BASE64

)

END