Expand Minimize
This topic has not yet been rated - Rate this topic

InPrimaryKey Property

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

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

object.InPrimaryKey
object

An expression that evaluates to an object in the Applies To list

Boolean

Read-only

HRESULT GetInPrimaryKey(LPBOOL pRetVal);

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.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.