UFN_EVENTSPONSOR_GETBENEFITS_TOITEMLISTXML
Return the FAF event sponsor's benefit in XML
Return
| Return Type |
|---|
| xml |
Parameters
| Parameter | Parameter Type | Mode | Description |
|---|---|---|---|
| @EVENTSPONSORID | uniqueidentifier | IN |
Definition
Copy
create function dbo.UFN_EVENTSPONSOR_GETBENEFITS_TOITEMLISTXML
(
@EVENTSPONSORID uniqueidentifier
)
returns xml
with execute as caller
as begin
-- do work here and return a value
return (
select
[BASECURRENCYID],
[BENEFITID],
[DETAILS],
[ID],
[QUANTITY],
[TOTALVALUE],
[UNITVALUE]
from
dbo.[UFN_EVENTSPONSOR_GETBENEFITS](@EVENTSPONSORID)
for xml raw('ITEM'),type,elements,root('BENEFIT'),BINARY BASE64
)
end