USP_SIMPLEDATALIST_SPONSORSHIPLOCATION

Returns a list of locations based on the entered location type.

Parameters

Parameter Parameter Type Mode Description
@SPONSORSHIPLOCATIONTYPE uniqueidentifier IN SPONSORSHIPLOCATIONTYPE

Definition

Copy


create procedure dbo.USP_SIMPLEDATALIST_SPONSORSHIPLOCATION(
    @SPONSORSHIPLOCATIONTYPE uniqueidentifier = null
)
as
    select 
        ID as VALUE
        dbo.UFN_SPONSORSHIPLOCATION_GETFULLNAME(SPONSORSHIPLOCATION.ID) as LABEL
    from dbo.SPONSORSHIPLOCATION
    where (@SPONSORSHIPLOCATIONTYPE is null or SPONSORSHIPLOCATIONTYPECODEID = @SPONSORSHIPLOCATIONTYPE)
    order by LABEL