UFN_EVENTSTAFFRESOURCE_GETRESOURCES_TOITEMLISTXML

Used to convert the results of UFN_EVENTSTAFFRESOURCE_GETRESOURCES to xml.

Return

Return Type
xml

Parameters

Parameter Parameter Type Mode Description
@EVENTID uniqueidentifier IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  1/27/2010 6:54:34 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.5.465.0, Culture=neutral, PublicKeyToken=null
Based on:  UFN_EVENTSTAFFRESOURCE_GETRESOURCES
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_EVENTSTAFFRESOURCE_GETRESOURCES_TOITEMLISTXML](
@EVENTID uniqueidentifier
    )
returns xml
as
BEGIN

RETURN (
SELECT [FILLEDBYCODE], [ID], [QUANTITYNEEDED], [VOLUNTEERTYPEID]
 FROM dbo.[UFN_EVENTSTAFFRESOURCE_GETRESOURCES](@EVENTID)
 for xml raw('ITEM'),type,elements,root('EVENTSTAFFRESOURCES'),BINARY BASE64

)

END