USP_SOLICITCODE_GETLIST

Returns the set of table entries for the "Solicit" code table.

Parameters

Parameter Parameter Type Mode Description
@INCLUDEINACTIVE bit IN Input parameter indicating whether or not to include inactive code table entries in the list.

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  12/17/2008 2:06:48 AM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=1.7.1271.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE PROCEDURE dbo.USP_SOLICITCODE_GETLIST(@INCLUDEINACTIVE bit)
AS
    if dbo.UFN_GETLISTSORTMETHOD('SOLICITCODE') = 0
        begin
            if @INCLUDEINACTIVE = 0
                select ID, DESCRIPTION, [SEQUENCE] from dbo.SOLICITCODE where ACTIVE = 1 order by DESCRIPTION
            else
                select ID, DESCRIPTION, [SEQUENCE] from dbo.SOLICITCODE order by DESCRIPTION    
            end
    else
        begin
            if @INCLUDEINACTIVE = 0
                select ID, DESCRIPTION, [SEQUENCE] from dbo.SOLICITCODE where ACTIVE = 1 order by SEQUENCE
            else
                select ID, DESCRIPTION, [SEQUENCE] from dbo.SOLICITCODE order by SEQUENCE
            end