UFN_EVENTLOCATION_GETROOMS_TOITEMLISTXML

Used to convert the results of UFN_EVENTLOCATION_GETROOMS to xml.

Return

Return Type
xml

Parameters

Parameter Parameter Type Mode Description
@EVENTLOCATIONID uniqueidentifier IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  4/29/2010 7:23:11 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.6.1444.0, Culture=neutral, PublicKeyToken=null
Based on:  UFN_EVENTLOCATION_GETROOMS
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_EVENTLOCATION_GETROOMS_TOITEMLISTXML](
@EVENTLOCATIONID uniqueidentifier
    )
returns xml
as
BEGIN

RETURN (
SELECT [CAPACITY], [ID], [NAME]
 FROM dbo.[UFN_EVENTLOCATION_GETROOMS](@EVENTLOCATIONID)
 for xml raw('ITEM'),type,elements,root('ROOMS'),BINARY BASE64

)

END