UFN_PRINTERLIST_GETPRINTERS_TOITEMLISTXML
Used to convert the results of UFN_PRINTERLIST_GETPRINTERS to xml.
Return
Return Type |
---|
xml |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@PRINTERLISTID | uniqueidentifier | IN |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 1/27/2010 6:50:21 PM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=2.5.465.0, Culture=neutral, PublicKeyToken=null
Based on: UFN_PRINTERLIST_GETPRINTERS
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_PRINTERLIST_GETPRINTERS_TOITEMLISTXML](
@PRINTERLISTID uniqueidentifier
)
returns xml
as
BEGIN
RETURN (
SELECT [ID], [PRINTERNAME]
FROM dbo.[UFN_PRINTERLIST_GETPRINTERS](@PRINTERLISTID)
for xml raw('ITEM'),type,elements,root('PRINTERS'),BINARY BASE64
)
END