UFN_OPPORTUNITYDESIGNATION_CAMPAIGNS_TOITEMLISTXML
Used to convert the results of UFN_OPPORTUNITYDESIGNATION_CAMPAIGNS to xml.
Return
Return Type |
---|
xml |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@OPPORTUNITYDESIGNATIONID | uniqueidentifier | IN |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 11/11/2014 4:21:59 PM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=4.0.2.0, Culture=neutral, PublicKeyToken=null
Based on: UFN_OPPORTUNITYDESIGNATION_CAMPAIGNS
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_OPPORTUNITYDESIGNATION_CAMPAIGNS_TOITEMLISTXML](
@OPPORTUNITYDESIGNATIONID uniqueidentifier
)
returns xml
as
BEGIN
RETURN (
SELECT
[CAMPAIGNID],
[CAMPAIGNNAME],
[CAMPAIGNSUBPRIORITYID],
[ID]
FROM dbo.[UFN_OPPORTUNITYDESIGNATION_CAMPAIGNS](@OPPORTUNITYDESIGNATIONID)
for xml path('ITEM'),type,elements,root('CAMPAIGNS'),BINARY BASE64
)
END