UFN_PRINTERLIST_GETPRINTERS
Retrieves the list of printers attached to a given printer list
Return
Return Type |
---|
table |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@PRINTERLISTID | uniqueidentifier | IN |
Definition
Copy
CREATE function dbo.UFN_PRINTERLIST_GETPRINTERS(@PRINTERLISTID uniqueidentifier)
returns table
as return
select ID, PRINTERNAME
from dbo.PRINTERLISTITEM
where PRINTERLISTID = @PRINTERLISTID and
PRINTERNAME in (select distinct PRINTERNAME from dbo.WORKSTATIONPRINTER)