ListKeys Method (SQL-DMO)

The ListKeys method returns a SQLObjectList object enumerating the PRIMARY KEY and FOREIGN KEY constraints in which a column participates.

Applies To

Column Object

Syntax

object.ListKeys( ) as SQLObjectList

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

Returns

A SQLObjectList object containing 0 or more Key objects.

Prototype (C/C++)

HRESULT ListKeys(
LPSQLDMOKEYLIST* ppList);

  


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