V_MKTPACKAGE_UNIQUE_CODE

Used to enforce unique values on the MKTPACKAGE.CODE field (which is defined as being unique but not required). This view will contain all non-empty values for this field from the MKTPACKAGE table.

Fields

Field Field Type Null Description
CODE nvarchar(10) A unique code that identifies the package.

Indexes

Index Name Fields Unique Primary Clustered
UIX_V_MKTPACKAGE_UNIQUE_CODE CODE yes yes

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  12/17/2008 2:07:02 AM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=1.7.1271.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE VIEW dbo.V_MKTPACKAGE_UNIQUE_CODE WITH SCHEMABINDING
AS
select [CODE] from dbo.MKTPACKAGE where [CODE] <> ''