UFN_AUCTIONITEM_GETPURCHASES_TOITEMLISTXML

Used to convert the results of UFN_AUCTIONITEM_GETPURCHASES to xml.

Return

Return Type
xml

Parameters

Parameter Parameter Type Mode Description
@AUCTIONITEMID uniqueidentifier IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  8/2/2010 7:16:56 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.7.1654.0, Culture=neutral, PublicKeyToken=null
Based on:  UFN_AUCTIONITEM_GETPURCHASES
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_AUCTIONITEM_GETPURCHASES_TOITEMLISTXML](
@AUCTIONITEMID uniqueidentifier
    )
returns xml
as
BEGIN

RETURN (
SELECT [ID], [PURCHASEID]
 FROM dbo.[UFN_AUCTIONITEM_GETPURCHASES](@AUCTIONITEMID)
 for xml raw('ITEM'),type,elements,root('PURCHASES'),BINARY BASE64

)

END