ListObjectNames Method (SQL-DMO)

The ListObjectNames method returns a NameList object enumerating a specified type of database object involved in the schema and/or data copy operation defined by the Transfer object used.

Applies To

Transfer Object

Syntax

object.ListObjectNames( ObjectType ) as NameList

Part Description
object Expression that evaluates to an object in the Applies To list
ObjectType Long integer constraining list membership by database object type as described in Settings

Settings

Use the values defined below when setting the ObjectType argument. Specify only a single database object type.

Constant Value Description
SQLDMOObj_Default 64 List enumerates default objects
SQLDMOObj_Rule 128 List enumerates rule objects
SQLDMOObj_StoredProcedure 16 List enumerates stored procedures
SQLDMOObj_Trigger 256 List enumerates triggers
SQLDMOObj_
UserDefinedDatatype
1 List enumerates user-defined data types
SQLDMOObj_UserTable 8 List enumerates user-defined tables
SQLDMOObj_View 4 List enumerates views

Returns

A NameList object enumerating database objects by name.

Prototype (C/C++)

HRESULT ListObjectNames(
SQLDMO_OBJECT_TYPE ObjectType,
LPSQLDMONAMELIST* ppList);

  


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