EnumObjects Method (SQL-DMO)

The EnumObjects method returns a QueryResults object enumerating the system and user-defined tables, indexes, and statistics mechanisms stored within a filegroup.

Applies To

FileGroup Object

Syntax

object.EnumObjects() as QueryResults

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

Returns

A QueryResults object containing one result set defined by this column.

Column Data type Description
name nchar(129) Name of the stored object

Prototype (C/C++)

HRESULT EnumObjects(
LPSQLDMOQUERYRESULTS* ppResults);

  


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