UFN_JOURNALENTRYANNOTATIONS_TOITEMLISTXML

Used to convert the results of UFN_JOURNALENTRYANNOTATIONS to xml.

Return

Return Type
xml

Parameters

Parameter Parameter Type Mode Description
@JOURNALENTRYID uniqueidentifier IN
@REFERENCENAME nvarchar(255) IN
@ANNOTATIONCATEGORYCODE tinyint IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  8/2/2010 7:16:28 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.7.1654.0, Culture=neutral, PublicKeyToken=null
Based on:  UFN_JOURNALENTRYANNOTATIONS
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_JOURNALENTRYANNOTATIONS_TOITEMLISTXML](
@JOURNALENTRYID uniqueidentifier
, @REFERENCENAME nvarchar(255)
, @ANNOTATIONCATEGORYCODE tinyint
    )
returns xml
as
BEGIN

RETURN (
SELECT [ANNOTATIONCATEGORYCODE], [APPUSERID], [DATEADDED], [ID], [REFERENCENAME], [SEQUENCE], [TEXT], [VALIDATIONCODE]
 FROM dbo.[UFN_JOURNALENTRYANNOTATIONS](@JOURNALENTRYID, @REFERENCENAME, @ANNOTATIONCATEGORYCODE)
 order by REFERENCENAME,ANNOTATIONCATEGORYCODE,SEQUENCE
 for xml raw('ITEM'),type,elements,root('ANNOTATIONS'),BINARY BASE64

)

END