smc_drop_filter  smc_get_command_info

Chapter 3: Monitor Client Library Functions

smc_drop_view

Description

Removes a view from a connection.

Syntax

SMC_RETURN_CODE smc_drop_view
(SMC_CONNECT_ID  clientId,
SMC_VIEW_ID     viewId)

Parameters

clientId

identifies the connection.

viewId

identifies a view created on the connection.

Returns

Return value

Indicates

SMC_RET_SUCCESS

Function succeeded.

SMC_RET_FAILURE

Function failed.

SMC_RET_INVALID_CONNECT

Connection does not exist.

Examples

Example 1

The following example assumes that:

Usage


Valid server modes

Mode

Availability

SMC_SERVER_M_LIVE

Yes

SMC_SERVER_M_HISTORICAL

No


Error

Error

Indicates

SMC_RET_INVALID_VIEWID

View does not exist.

See also

smc_create_view, smc_drop_alarm, smc_drop_filter





Copyright © 2005. Sybase Inc. All rights reserved. smc_get_command_info

View this book as PDF