UFN_OPPORTUNITY_DESIGNATION_TOITEMLISTXML
Used to convert the results of UFN_OPPORTUNITY_DESIGNATION to xml.
Return
Return Type |
---|
xml |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@OPPORTUNITYID | uniqueidentifier | IN |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 12/17/2008 2:24:55 AM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=1.7.1271.0, Culture=neutral, PublicKeyToken=null
Based on: UFN_OPPORTUNITY_DESIGNATION
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_OPPORTUNITY_DESIGNATION_TOITEMLISTXML](
@OPPORTUNITYID uniqueidentifier
)
returns xml
as
BEGIN
RETURN (
SELECT [AMOUNT], [CONSTITUENTID], [CONSTITUENTNAME], [DESIGNATIONID], [ID], [SEQUENCE]
FROM dbo.[UFN_OPPORTUNITY_DESIGNATION](@OPPORTUNITYID)
order by SEQUENCE
for xml raw('ITEM'),type,elements,root('DESIGNATION'),BINARY BASE64
)
END