InPrimaryKey Property (SQL-DMO)

The InPrimaryKey property exposes primary key participation for a Microsoft® SQL Server™ column.

Applies To

Column Object

Syntax

object.InPrimaryKey

Part Description
object Expression that evaluates to an object in the Applies To list

Remarks

If True, the referenced column is part of a PRIMARY KEY or UNIQUE key constraint defined on the table.

If False, the referenced column is not part of a PRIMARY KEY or UNIQUE key constraint defined on the table.

Data Type

Boolean

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetInPrimaryKey(LPBOOL pRetVal);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.