UFN_KPIINSTANCESITES_GET_FROMITEMLISTXML

Used to convert an xml string to a table based on UFN_KPIINSTANCESITES_GET.

Return

Return Type
table

Parameters

Parameter Parameter Type Mode Description
@ITEMLISTXML xml IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  8/2/2010 7:07:07 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.7.1654.0, Culture=neutral, PublicKeyToken=null
Based on:  UFN_KPIINSTANCESITES_GET
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_KPIINSTANCESITES_GET_FROMITEMLISTXML](@ITEMLISTXML xml) RETURNS TABLE AS
RETURN (
SELECT

T.c.value('(ID)[1]','uniqueidentifier') AS 'ID',
T.c.value('(SITEID)[1]','uniqueidentifier') AS 'SITEID'
FROM @ITEMLISTXML.nodes('/SITESSELECTED/ITEM') T(c)
)