UFN_TICKET_GETPRINTHISTORY_TOITEMLISTXML
Used to convert the results of UFN_TICKET_GETPRINTHISTORY to xml.
Return
Return Type |
---|
xml |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@TICKETID | uniqueidentifier | IN |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 4/29/2010 7:39:50 PM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=2.6.1444.0, Culture=neutral, PublicKeyToken=null
Based on: UFN_TICKET_GETPRINTHISTORY
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_TICKET_GETPRINTHISTORY_TOITEMLISTXML](
@TICKETID uniqueidentifier
)
returns xml
as
BEGIN
RETURN (
SELECT [BARCODE], [DATEADDED], [ID], [PRINTEDBY], [PRINTEDTIME], [REPRINTREASON], [WORKSTATION]
FROM dbo.[UFN_TICKET_GETPRINTHISTORY](@TICKETID)
order by BARCODE
for xml raw('ITEM'),type,elements,root('HISTORY'),BINARY BASE64
)
END